Class: PetriNet::CoverabilityGraph::Edge

Inherits:
Base
  • Object
show all
Defined in:
lib/petri_net/coverability_graph/edge.rb

Instance Attribute Summary

Attributes inherited from Base

#logger

Instance Method Summary collapse

Methods inherited from Base

#next_object_id, #reset

Constructor Details

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

Creates an edge for PetriNet::CoverabilityGraph

Yields:

  • (_self)

Yield Parameters:



4
5
6
7
# File 'lib/petri_net/coverability_graph/edge.rb', line 4

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

Instance Method Details

#validateObject

Validates the data holded by this edge, this will be used while adding the edge to the graph



10
11
12
# File 'lib/petri_net/coverability_graph/edge.rb', line 10

def validate
    super
end