module YPetri::Simulation::TransitionRepresentation::Types

Attributes

type[R]

Public Instance Methods

TS?() click to toggle source

Is this a TS transition?

# File lib/y_petri/simulation/transition_representation/types.rb, line 40
def TS?; type == :TS end
Ts?() click to toggle source

Is this a Ts transition?

# File lib/y_petri/simulation/transition_representation/types.rb, line 44
def Ts?; type == :Ts end
tS?() click to toggle source

Is this a tS transition?

# File lib/y_petri/simulation/transition_representation/types.rb, line 48
def tS?; type == :tS end
ts?() click to toggle source

Is this a ts transition?

# File lib/y_petri/simulation/transition_representation/types.rb, line 52
def ts?; type == :ts end
type_init(*args) click to toggle source
# File lib/y_petri/simulation/transition_representation/types.rb, line 20
def type_init *args
  extend case source.type
         when :A then Type_A
         when :TS then Type_TS
         when :Ts then Type_Ts
         when :tS then Type_tS
         when :ts then Type_ts
         else fail TypeError, "Unknown tr. type #{source.type}!" end
  init
end