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 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 TopologicalPrimitive

#complex

Attributes inherited from BasicTypes::Object

#label

Attributes included from Parts::Resource

#child, #keys, #locale, #namespace

Instance Method Summary collapse

Methods included from Order

#relative_position

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

#[], #[]=, #_setup_

Constructor Details

#initialize(start, ended) ⇒ Edge

オブジェクトの生成

Parameters:



516
517
518
519
520
521
522
523
524
# File 'lib/when_exe/tmobjects.rb', line 516

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:



496
497
498
# File 'lib/when_exe/tmobjects.rb', line 496

def end
  @end
end

#geometryWhen::TM::Period (readonly)

対応する期間 (relation - Realization)

Returns:



508
509
510
# File 'lib/when_exe/tmobjects.rb', line 508

def geometry
  @geometry
end

#startWhen::TM::Node (readonly)

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

Returns:



502
503
504
# File 'lib/when_exe/tmobjects.rb', line 502

def start
  @start
end