Class: When::TM::Edge

Inherits:
TopologicalPrimitive show all
Defined in:
lib/when_exe/tmobjects.rb

Overview

一次元位相プリミティブ - 幾何的実現は When::TM::Period と対応する

see gml schema

Constant Summary

Constants included from Parts::Resource

Parts::Resource::LabelProperty, Parts::Resource::Prefix, Parts::Resource::PrefixIndex, Parts::Resource::PrefixKeys, Parts::Resource::PrefixValues

Instance Attribute Summary collapse

Attributes inherited from TopologicalPrimitive

#complex

Attributes inherited from BasicTypes::Object

#label

Attributes included from Parts::Resource

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

Instance Method Summary collapse

Methods included from Order

#relative_position

Methods inherited from BasicTypes::Object

#tap

Methods included from Parts::Resource

#[], #^, _extract_prefix, _instance, _parse, _path_with_prefix, #each, #enum_for, #hierarchy, #include?, #included?, #iri, #leaf?, #m17n, #map, #next, #parent, #prev, #registered?

Methods included from Parts::Resource::Pool

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

Methods included from Parts::Resource::Synchronize

#synchronize

Constructor Details

#initialize(start, ended) ⇒ Edge

オブジェクトの生成

Parameters:



491
492
493
494
495
496
497
498
499
# File 'lib/when_exe/tmobjects.rb', line 491

def initialize(start, ended)
  super()
  @start = start
  @end   = ended
  @geometry = Period.new(@start.geometry, @end.geometry)
  @geometry.topology  = self
  @start.next_edge   << self
  @end.previous_edge << self
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class When::TM::TopologicalPrimitive

Instance Attribute Details

#endWhen::TM::Node (readonly)

対応するノード (relation - Termination)

Returns:



471
472
473
# File 'lib/when_exe/tmobjects.rb', line 471

def end
  @end
end

#geometryWhen::TM::Period (readonly)

対応する期間 (relation - Realization)

Returns:



483
484
485
# File 'lib/when_exe/tmobjects.rb', line 483

def geometry
  @geometry
end

#startWhen::TM::Node (readonly)

対応するノード (relation - Initiation)

Returns:



477
478
479
# File 'lib/when_exe/tmobjects.rb', line 477

def start
  @start
end