Class: PetriNet::ReachabilityGraph::Node

Inherits:
Graph::Node show all
Defined in:
lib/petri_net/reachability_graph/node.rb

Direct Known Subclasses

InfinityNode

Instance Attribute Summary

Attributes inherited from Graph::Node

#graph, #id, #inputs, #label, #markings, #name, #omega_marked, #outputs, #start

Attributes inherited from Base

#logger

Instance Method Summary collapse

Methods inherited from Graph::Node

#<=>, #add_omega, #gv_id, #to_gv, #to_s, #validate

Methods inherited from Base

#next_object_id, #reset

Constructor Details

#initialize(options = {}) {|_self| ... } ⇒ Node

Returns a new instance of Node.

Yields:

  • (_self)

Yield Parameters:



2
3
4
5
# File 'lib/petri_net/reachability_graph/node.rb', line 2

def initialize(options = {}, &block)
    super(options)
    yield self unless block.nil?
end