Class: CPEE::ProcessTransformation::Parallel

Inherits:
Object
  • Object
show all
Includes:
Container, Struct, Enumerable
Defined in:
lib/cpee/processtransformation/structures.rb

Overview

}}}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Struct

#each, #length

Methods included from Container

#container?

Constructor Details

#initialize(id, type, wait = '-1') ⇒ Parallel

Returns a new instance of Parallel.



131
132
133
134
135
136
137
# File 'lib/cpee/processtransformation/structures.rb', line 131

def initialize(id,type,wait='-1')
  @container = true
  @id = id
  @type = type
  @sub = []
  @wait = wait
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



129
130
131
# File 'lib/cpee/processtransformation/structures.rb', line 129

def id
  @id
end

#subObject (readonly)

Returns the value of attribute sub.



129
130
131
# File 'lib/cpee/processtransformation/structures.rb', line 129

def sub
  @sub
end

#typeObject

Returns the value of attribute type.



130
131
132
# File 'lib/cpee/processtransformation/structures.rb', line 130

def type
  @type
end

#waitObject

Returns the value of attribute wait.



130
131
132
# File 'lib/cpee/processtransformation/structures.rb', line 130

def wait
  @wait
end

Instance Method Details

#new_branchObject



138
139
140
# File 'lib/cpee/processtransformation/structures.rb', line 138

def new_branch
  (@sub << Branch.new(@id)).last
end