Class: When::TM::ReferenceSystem

Inherits:
Object show all
Defined in:
lib/when_exe/tmreference.rb

Overview

時間参照系

see gml schema

Constant Summary

Constants included from Parts::Resource

Parts::Resource::ConstList, Parts::Resource::ConstTypes, Parts::Resource::IRIDecode, Parts::Resource::IRIDecodeTable, Parts::Resource::IRIEncode, Parts::Resource::IRIEncodeTable, Parts::Resource::IRIHeader, Parts::Resource::LabelProperty

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

Attributes inherited from BasicTypes::Object

#label

Attributes included from Parts::Resource

#_pool, #child, #keys, #locale, #namespace

Instance Method Summary collapse

Methods included from Parts::Resource

#[], #^, _abbreviation_to_iri, _decode, _encode, _extract_prefix, _instance, _instantiate, _parse, _path_with_prefix, _replace_tags, _setup_, _setup_info, _simplify_path, base_uri, #each, #enum_for, #hierarchy, #include?, #included?, #iri, #leaf?, #m17n, #map, #parent, #registered?, root_dir

Methods included from Parts::Resource::Pool

#[], #[]=, #_pool, #_setup_, #pool_keys

Methods included from Parts::Resource::Synchronize

#synchronize

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class When::Parts::Resource

Instance Attribute Details

#domain_of_validityWhen::EX::Extent Also known as: domainOfValidity

Note:

domain の最小・最大から範囲を決定して domain_of_validity としている domain_of_validity は ISO19108との互換性を確保するため提供しているが、 有効期間が複数に断片化していることがあるので、より正確な情報を含む domain の使用を推奨する

マルチスレッド動作時 CalendarEra の生成で Calendar の本属性が更新される 参照・更新処理は synchronize { … } の … の部分に書く必要がある

この時間参照系が使用する空間と時間の制限(実装は時間のみ)

Limits of space and time within which the temporal reference system is use

Returns:



37
38
39
# File 'lib/when_exe/tmreference.rb', line 37

def domain_of_validity
  @domain_of_validity
end

#positionArray<When::TM::(Temporal)Position> (readonly)

この時間参照系と関連付けられた時間位置 (relation - Reference)

The temporal position associated with the time reference system being described

Returns:



46
47
48
# File 'lib/when_exe/tmreference.rb', line 46

def position
  @position
end

Instance Method Details

#domainHash<String=>When::Parts::GeomerticComplex>

Note:

マルチスレッド動作時 CalendarEra の生成で Calendar の本属性が更新される 参照・更新処理は synchronize { … } の … の部分に書く必要がある

この時間参照系が使用する時間の範囲

Range of time within which the temporal reference system is use

Returns:

  • (Hash<String=>When::Parts::GeomerticComplex>)


58
59
60
# File 'lib/when_exe/tmreference.rb', line 58

def domain
  @domain ||= Hash.new {|hash, key| hash[key] = When::Parts::GeometricComplex.new([])}
end

#nameWhen::RS::Identifier

時間参照系を識別する名称

Name by which the temporal reference system is known



68
69
70
# File 'lib/when_exe/tmreference.rb', line 68

def name
  @name ||= When::RS::Identifier.new(label, @version, @remarks)
end