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

fix in main script

parent 83791603
...@@ -799,13 +799,15 @@ def createObjects(): ...@@ -799,13 +799,15 @@ def createObjects():
name=element.get('name', 'not found') name=element.get('name', 'not found')
intervalCapacity=element.get('intervalCapacity', []) intervalCapacity=element.get('intervalCapacity', [])
CS=CapacityStation(id,name,intervalCapacity=intervalCapacity) CS=CapacityStation(id,name,intervalCapacity=intervalCapacity)
CS.nextIds=getSuccessorList(id)
G.CapacityStationList.append(CS) G.CapacityStationList.append(CS)
G.ObjList.append(CS) G.ObjList.append(CS)
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=CapacityStation(id,name) CB=CapacityStationBuffer(id,name)
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