Module: YPetri::Simulation::Transitions::Types
- Included in:
- YPetri::Simulation::Transitions
- Defined in:
- lib/y_petri/simulation/transitions/types.rb
Instance Method Summary collapse
-
#A ⇒ Object
Subset of A type transitions, if any.
-
#a ⇒ Object
Subset of a type transitions, if any.
-
#S ⇒ Object
Subset of S type transitions, if any.
-
#s ⇒ Object
Subset of s type transitions, if any.
-
#T ⇒ Object
Subset of T type transitions, if any.
-
#t ⇒ Object
Subset of t type transitions, if any.
-
#Ts ⇒ Object
Subset of Ts type transitions, if any.
-
#tS ⇒ Object
Subset of tS type transitions, if any.
-
#TS ⇒ Object
Subset of TS type transitions, if any.
-
#ts ⇒ Object
Subset of ts type transitions, if any.
Instance Method Details
#A ⇒ Object
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 |
#a ⇒ Object
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 |
#S ⇒ Object
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 |
#s ⇒ Object
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 |
#T ⇒ Object
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 |
#t ⇒ Object
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 |
#Ts ⇒ Object
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 |
#tS ⇒ Object
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 |
#TS ⇒ Object
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 |
#ts ⇒ Object
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 |