Commit 5d86f089 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

cherry-pick from readWIPseperatelly. updateNext of MachineJobSShop updated in...

cherry-pick from readWIPseperatelly. updateNext of MachineJobSShop updated in order to avoid updating the next list if there is no next step in the remaining route of the activeEntity
parent 3034739b
......@@ -125,6 +125,9 @@ class MachineJobShop(Machine):
activeEntity=entity
# read the possible receivers - update the next list
import Globals
# XXX: in the case of MouldAssembler there is no next defined in the route of the entities that are received
# the position activeEntity.remainingRoute[1] is out of bound. the next should be updated by the remaining route of the entity to be assembled
if len(activeEntity.remainingRoute)>1:
nextObjectIds=activeEntity.remainingRoute[1].get('stationIdsList',[])
nextObjects = []
for nextObjectId in nextObjectIds:
......
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