Class: When::TM::CoordinateSystem
- Inherits:
-
ReferenceSystem
- Object
- BasicTypes::Object
- Object
- ReferenceSystem
- When::TM::CoordinateSystem
- Defined in:
- lib/when_exe/tmreference.rb
Overview
時間座標系
see gml schema
Constant Summary
Constants included from Namespace
Namespace::DC, Namespace::DCQ, Namespace::DCT, Namespace::FOAF, Namespace::OWL, Namespace::RDF, Namespace::RDFC, Namespace::RDFS, Namespace::RSS, Namespace::XSD
Instance Attribute Summary collapse
-
#interval ⇒ When::TM::Duration
readonly
この参照系の軸で時間の参照単位とする間隔.
-
#origin ⇒ When::BasicTypes::DateTime
readonly
グレゴリオ暦の日付及びその日のUTCの時刻で表現する、座標参照系の尺度の原点位置.
Attributes inherited from ReferenceSystem
#domain_of_validity, #position
Attributes inherited from BasicTypes::Object
Attributes included from Parts::Resource
#child, #keys, #locale, #namespace
Instance Method Summary collapse
-
#transform_coord(c_value) ⇒ When::TM::DateAndTime
(also: #transformCoord)
この時間参照系の座標値をグレゴリオ暦及びUTC時刻に変換する.
-
#transform_date_time(date_time) ⇒ When::TM::Coordinate
(also: #transformDateTime)
グレゴリオ暦及びUTC時刻をこの時間参照系の座標値に変換する.
Methods inherited from ReferenceSystem
Methods included from Parts::Resource
#[], #^, _instance, _setup_, _setup_info, base_uri, #each, #enum_for, #hierarchy, #include?, #included?, #iri, #leaf?, #m17n, #map, #parent, #registered?, root_dir
Methods included from Parts::Resource::Pool
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class When::Parts::Resource
Instance Attribute Details
#interval ⇒ When::TM::Duration (readonly)
この参照系の軸で時間の参照単位とする間隔
Standard unit of time used to measure duration on the axis of the coordinate system
814 815 816 |
# File 'lib/when_exe/tmreference.rb', line 814 def interval @interval end |
#origin ⇒ When::BasicTypes::DateTime (readonly)
グレゴリオ暦の日付及びその日のUTCの時刻で表現する、座標参照系の尺度の原点位置
Position of the origin of the scale on which the temporal coordinate system is based expressed as a date in the Gregorian calendar and time of day in UTC
805 806 807 |
# File 'lib/when_exe/tmreference.rb', line 805 def origin @origin end |
Instance Method Details
#transform_coord(c_value) ⇒ When::TM::DateAndTime Also known as: transformCoord
この時間参照系の座標値をグレゴリオ暦及びUTC時刻に変換する
822 823 824 |
# File 'lib/when_exe/tmreference.rb', line 822 def transform_coord(c_value) When::Gregorian.jul_trans(JulianDate.universal_time(c_value.universal_time, {:frame=>When::UTC})) end |
#transform_date_time(date_time) ⇒ When::TM::Coordinate Also known as: transformDateTime
グレゴリオ暦及びUTC時刻をこの時間参照系の座標値に変換する
833 834 835 |
# File 'lib/when_exe/tmreference.rb', line 833 def transform_date_time(date_time) Coordinate.universal_time(date_time.universal_time, {:frame=>self}) end |