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): ...@@ -35,12 +35,11 @@ class CapacityStationBuffer(Queue):
#=========================================================================== #===========================================================================
# the __init__ method of the CapacityStationBuffer # 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) Queue.__init__(self, id, name, capacity=capacity)
self.isLocked=True self.isLocked=True
self.isAssembly=isAssembly # flag that shows if here the whole project is assembled self.isAssembly=isAssembly # flag that shows if here the whole project is assembled
def initialize(self): def initialize(self):
Queue.initialize(self) Queue.initialize(self)
self.isLocked=True self.isLocked=True
......
...@@ -806,7 +806,8 @@ def createObjects(): ...@@ -806,7 +806,8 @@ def createObjects():
elif objClass=='Dream.CapacityStationBuffer': elif objClass=='Dream.CapacityStationBuffer':
id=element.get('id', 'not found') id=element.get('id', 'not found')
name=element.get('name', '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) CB.nextIds=getSuccessorList(id)
G.CapacityStationBufferList.append(CB) G.CapacityStationBufferList.append(CB)
G.ObjList.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