Module: YPetri::Simulation::TransitionRepresentation::Type_t

Includes:
Type_a
Included in:
Type_tS, Type_ts
Defined in:
lib/y_petri/simulation/transition_representation/t.rb

Instance Method Summary collapse

Methods included from Type_a

#A?, #a?, #delta

Instance Method Details

#dObject

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

#initObject

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.

Returns:

  • (Boolean)

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.

Returns:

  • (Boolean)

11
12
13
# File 'lib/y_petri/simulation/transition_representation/t.rb', line 11

def T?
  false
end