Commit 31364aa6 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Jérome Perrin

currentStation reset as an entity is removed (mouldAssembly)

parent ba89ef1d
......@@ -184,8 +184,9 @@ class MouldAssembly(MachineJobShop):
for element in temp_activeObjectQueue:
# update their schedule
element.schedule[-1].append(self.env.now)
# remove the elements
# remove the elements from the activeObjectQueue and reset the current station of the entity
activeObjectQueue.remove(element)
element.currentStation=None
del temp_activeObjectQueue[:]
# after assembling reset the capacity
activeObject.updateCapacity(1)
......
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