class Rley::GFG::CallEdge
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)
Attributes
Public Class Methods
Source
# File lib/rley/gfg/call_edge.rb, line 17 def initialize(thePredecessor, theSuccessor) super(thePredecessor, theSuccessor) do_set_key(thePredecessor, theSuccessor) end
Pre-condition: thePredecessor is an ItemVertex
Pre-condition: theSuccessor is an StartVertex
Calls superclass method
Private Instance Methods
Source
# File lib/rley/gfg/call_edge.rb, line 24 def do_set_key(thePredecessor, _theSuccessor) tail_d_item = thePredecessor.dotted_item tail_production = tail_d_item.production @key = "CALL_#{tail_production.object_id}_#{tail_d_item.position}" end