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

#to_s

Constructor Details

#initialize(thePredecessor, theSuccessor) ⇒ CallEdge

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



15
16
17
18
# File 'lib/rley/gfg/call_edge.rb', line 15

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



11
12
13
# File 'lib/rley/gfg/call_edge.rb', line 11

def key
  @key
end