Class: Rley::GFG::CallEdge

Inherits:
Edge
  • Object
show all
Defined in:
lib/rley/gfg/call_edge.rb

Overview

Specialization of an edge in a grammar flow graph that has a item vertex as its head (predecessor). and a start vertex (.X) as its tail (successor). Responsibilities:

  • To know the successor vertex (tail)

Instance Attribute Summary collapse

Attributes inherited from Edge

#successor

Instance Method Summary collapse

Methods inherited from Edge

#inspect, #to_s

Constructor Details

#initialize(thePredecessor, theSuccessor) ⇒ CallEdge

Pre-condition: thePredecessor is an ItemVertex Pre-condition: theSuccessor is an StartVertex



17
18
19
20
# File 'lib/rley/gfg/call_edge.rb', line 17

def initialize(thePredecessor, theSuccessor)
  super(thePredecessor, theSuccessor)
  do_set_key(thePredecessor, theSuccessor)
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



13
14
15
# File 'lib/rley/gfg/call_edge.rb', line 13

def key
  @key
end