Module: YPetri::Simulation::TransitionRepresentation::Type_t
- Includes:
- Type_a
- Defined in:
- lib/y_petri/simulation/transition_representation/t.rb
Instance Method Summary collapse
-
#d ⇒ Object
Change, as it would happen if the transition fired, returned as hash codomain places >> change.
-
#init ⇒ Object
Initialization subroutine.
-
#t? ⇒ Boolean
(also: #timeless?)
True for timed transitions.
-
#T? ⇒ Boolean
(also: #timed?)
False for timed transitions.
Methods included from Type_a
Instance Method Details
#d ⇒ Object
Change, as it would happen if the transition fired, returned as hash codomain places >> change.
33 34 35 |
# File 'lib/y_petri/simulation/transition_representation/t.rb', line 33 def d delta.with_keys do |p| p.name || p end end |
#init ⇒ Object
Initialization subroutine.
25 26 27 28 |
# File 'lib/y_petri/simulation/transition_representation/t.rb', line 25 def init super @function = source.action_closure end |
#t? ⇒ Boolean Also known as: timeless?
True for timed transitions.
18 19 20 |
# File 'lib/y_petri/simulation/transition_representation/t.rb', line 18 def t? true end |
#T? ⇒ Boolean Also known as: timed?
False for timed transitions.
11 12 13 |
# File 'lib/y_petri/simulation/transition_representation/t.rb', line 11 def T? false end |