class Rley::GFG::ReturnEdge
Responsibilities:
-
To know the successor vertex (tail)
Attributes
Public Class Methods
Source
# File lib/rley/gfg/return_edge.rb, line 18 def initialize(thePredecessor, theSuccessor) super(thePredecessor, theSuccessor) do_set_key(thePredecessor, theSuccessor) end
Pre-condition: thePredecessor is an EndVertex
Pre-condition: theSuccessor is an ItemVertex
Calls superclass method
Rley::GFG::Edge::new
Private Instance Methods
Source
# File lib/rley/gfg/return_edge.rb, line 25 def do_set_key(_thePredecessor, theSuccessor) tail_d_item = theSuccessor.dotted_item prefix = "RET_#{tail_d_item.production.object_id}_" @key = prefix + tail_d_item.prev_position.to_s end