lib/cpee/processtransformation/structures.rb in cpee-1.3.136 vs lib/cpee/processtransformation/structures.rb in cpee-1.3.137
- old
+ new
@@ -110,17 +110,19 @@
end
end #}}}
class Loop < Array #{{{
include Container
attr_accessor :id, :type, :condition, :condition_type
+ attr_reader :attributes
def condition?; true; end
def initialize(id)
@container = true
@id = id
@type = :loop
@condition = []
@condition_type = nil
+ @attributes = {}
end
end #}}}
class Parallel #{{{
include Container
@@ -144,16 +146,18 @@
include Container
include Struct
include Enumerable
attr_reader :container
attr_reader :id, :sub, :mode
+ attr_reader :attributes
attr_accessor :type
def initialize(id,mode,type)
@container = true
@id = id
@sub = []
@mode = mode
@type = type
+ @attributes = {}
end
def new_branch
(@sub << Alternative.new(@id)).last
end
end #}}}