module YPetri::Simulation::TransitionRepresentation::Type_a
A mixin for non-assignment transition representations.
Public Instance Methods
A?()
click to toggle source
Assignment action – false for non-assignment transitions.
# File lib/y_petri/simulation/transition_representation/a.rb, line 8 def A? false end
Also aliased as: assignment_action?, assignment?
a?()
click to toggle source
Normal (non-assignment) action – true for A transitions
# File lib/y_petri/simulation/transition_representation/a.rb, line 16 def a? true end
delta()
click to toggle source
Change, for free places, as it would happen if the transition fired.
# File lib/y_petri/simulation/transition_representation/a.rb, line 27 def delta Δ.select { |p, v| p.free? } end
init()
click to toggle source
Initialization subroutine.
# File lib/y_petri/simulation/transition_representation/a.rb, line 22 def init end