Module: YPetri::Simulation::Transitions::Types

Included in:
YPetri::Simulation::Transitions
Defined in:
lib/y_petri/simulation/transitions/types.rb

Instance Method Summary collapse

Instance Method Details

#AObject

Subset of A type transitions, if any.



84
85
86
87
88
# File 'lib/y_petri/simulation/transitions/types.rb', line 84

def A
  ( @Type_A ||= Class.new( self.class ).tap do |klass|
      klass.class_exec { include Type_A }
    end ).load subset( &:A? )
end

#aObject

Subset of a type transitions, if any.



92
93
94
95
96
# File 'lib/y_petri/simulation/transitions/types.rb', line 92

def a
  ( @Type_a ||= Class.new( self.class ).tap do |klass|
      klass.class_exec { include Type_a }
    end ).load subset( &:a? )
end

#SObject

Subset of S type transitions, if any.



28
29
30
31
32
# File 'lib/y_petri/simulation/transitions/types.rb', line 28

def S
  ( @Type_S ||= Class.new( self.class ).tap do |klass|
      klass.class_exec { include Type_S }
    end ).load subset( &:S? )
end

#sObject

Subset of s type transitions, if any.



20
21
22
23
24
# File 'lib/y_petri/simulation/transitions/types.rb', line 20

def s
  ( @Type_s ||= Class.new( self.class ).tap do |klass|
      klass.class_exec { include Type_s }
    end ).load subset( &:s? )
end

#TObject

Subset of T type transitions, if any.



44
45
46
47
48
# File 'lib/y_petri/simulation/transitions/types.rb', line 44

def T
  ( @Type_T ||= Class.new( self.class ).tap do |klass|
      klass.class_exec { include Type_T }
    end ).load subset( &:T? )
end

#tObject

Subset of t type transitions, if any.



36
37
38
39
40
# File 'lib/y_petri/simulation/transitions/types.rb', line 36

def t
  ( @Type_t ||= Class.new( self.class ).tap do |klass|
      klass.class_exec { include Type_t }
    end ).load subset( &:t? )
end

#TsObject

Subset of Ts type transitions, if any.



68
69
70
71
72
# File 'lib/y_petri/simulation/transitions/types.rb', line 68

def Ts
  ( @Type_Ts ||= Class.new( self.class ).tap do |klass|
      klass.class_exec { include Type_Ts }
    end ).load subset( &:Ts? )
end

#tSObject

Subset of tS type transitions, if any.



60
61
62
63
64
# File 'lib/y_petri/simulation/transitions/types.rb', line 60

def tS
  ( @Type_tS ||= Class.new( self.class ).tap do |klass|
      klass.class_exec { include Type_tS }
    end ).load subset( &:tS? )
end

#TSObject

Subset of TS type transitions, if any.



76
77
78
79
80
# File 'lib/y_petri/simulation/transitions/types.rb', line 76

def TS
  ( @Type_TS ||= Class.new( self.class ).tap do |klass|
      klass.class_exec { include Type_TS }
    end ).load subset( &:TS? )
end

#tsObject

Subset of ts type transitions, if any.



52
53
54
55
56
# File 'lib/y_petri/simulation/transitions/types.rb', line 52

def ts
  ( @Type_ts ||= Class.new( self.class ).tap do |klass|
      klass.class_exec { include Type_ts }
    end ).load subset( &:ts? )
end