Class: CPEE::Transformation::Parallel
- Inherits:
-
Object
- Object
- CPEE::Transformation::Parallel
- Defined in:
- lib/cpee/transformation/structures.rb
Overview
}}}
Instance Attribute Summary collapse
-
#cancel ⇒ Object
Returns the value of attribute cancel.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#sub ⇒ Object
readonly
Returns the value of attribute sub.
-
#type ⇒ Object
Returns the value of attribute type.
-
#wait ⇒ Object
Returns the value of attribute wait.
Instance Method Summary collapse
-
#initialize(id, type, wait = '-1', cancel = 'last') ⇒ Parallel
constructor
A new instance of Parallel.
- #new_branch ⇒ Object
Methods included from Struct
Methods included from Container
Constructor Details
#initialize(id, type, wait = '-1', cancel = 'last') ⇒ Parallel
Returns a new instance of Parallel.
146 147 148 149 150 151 152 153 |
# File 'lib/cpee/transformation/structures.rb', line 146 def initialize(id,type,wait='-1',cancel='last') @container = true @id = id @type = type @sub = [] @wait = wait @cancel = cancel end |
Instance Attribute Details
#cancel ⇒ Object
Returns the value of attribute cancel.
145 146 147 |
# File 'lib/cpee/transformation/structures.rb', line 145 def cancel @cancel end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
144 145 146 |
# File 'lib/cpee/transformation/structures.rb', line 144 def id @id end |
#sub ⇒ Object (readonly)
Returns the value of attribute sub.
144 145 146 |
# File 'lib/cpee/transformation/structures.rb', line 144 def sub @sub end |
#type ⇒ Object
Returns the value of attribute type.
145 146 147 |
# File 'lib/cpee/transformation/structures.rb', line 145 def type @type end |
#wait ⇒ Object
Returns the value of attribute wait.
145 146 147 |
# File 'lib/cpee/transformation/structures.rb', line 145 def wait @wait end |