class YPetri::Simulation::Transitions

Transition collection for YPetri::Simulation.

A mixin for collections of A transitions.

A mixin for collections of S transitions.

A mixin for collections of T transitions.

Mixin for collections of TS transitions.

A mixin for collections of Ts transitions.

A mixin for collections of A transitions.

Simulation mixin providing access to transitions.

A mixin for collections of s transitions.

A mixin for collections of t transitions.

A mixin for collections of tS transitions.

A mixin for collections of ts transitions.

A mixin with transition type selectors.

Public Instance Methods

push(transition) click to toggle source

Pushes a transition to the collection.

Calls superclass method
# File lib/y_petri/simulation/transitions.rb, line 12
def push transition
  t = begin; net.transition( transition ); rescue NameError, TypeError
        return super transition( transition )
      end
  super t.name ?
          TransitionPS().new( t, name: t.name ) :
          TransitionTS().new( t )
end