Commit 02c8dd5c authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Jérome Perrin

main script set to read the isAssembly flag

parent 2ab3d3d1
......@@ -35,12 +35,11 @@ class CapacityStationBuffer(Queue):
#===========================================================================
# the __init__ method of the CapacityStationBuffer
#===========================================================================
def __init__(self, id, name, capacity=float("inf"), isDummy=False, schedulingRule="FIFO", gatherWipStat=False, isAssembly=False):
def __init__(self, id, name, isAssembly=False, capacity=float("inf"), isDummy=False, schedulingRule="FIFO", gatherWipStat=False):
Queue.__init__(self, id, name, capacity=capacity)
self.isLocked=True
self.isAssembly=isAssembly # flag that shows if here the whole project is assembled
def initialize(self):
Queue.initialize(self)
self.isLocked=True
......
......@@ -806,7 +806,8 @@ def createObjects():
elif objClass=='Dream.CapacityStationBuffer':
id=element.get('id', 'not found')
name=element.get('name', 'not found')
CB=CapacityStationBuffer(id,name)
isAssembly=bool(element.get('isAssembly', 0))
CB=CapacityStationBuffer(id,name,isAssembly=isAssembly)
CB.nextIds=getSuccessorList(id)
G.CapacityStationBufferList.append(CB)
G.ObjList.append(CB)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment