BatchDecomposition removeEntity updated to signalGiver

parent bde47715
...@@ -127,6 +127,16 @@ class BatchDecomposition(CoreObject): ...@@ -127,6 +127,16 @@ class BatchDecomposition(CoreObject):
signaling=self.signalReceiver() signaling=self.signalReceiver()
if signaling: if signaling:
break break
# =======================================================================
# removes an entity from the Machine
# =======================================================================
def removeEntity(self, entity=None):
activeObject=self.getActiveObject()
activeEntity=CoreObject.removeEntity(self, entity) # run the default method
activeObject.waitToDispose=False # update the waitToDispose flag
if activeObject.canAccept():
activeObject.signalGiver()
return activeEntity
# ======================================================================= # =======================================================================
# method that decomposes the activeEntity into subBatches # method that decomposes the activeEntity into subBatches
......
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