new appendEntity added to CoreObject for use inside removeEntity. Appends...

new appendEntity added to CoreObject for use inside removeEntity. Appends entity to an object internal queue. To be overridden by Assembly object where entities are appended to Frame internal queue
parent 2d7033c8
......@@ -166,9 +166,7 @@ class CoreObject(Process):
activeObjectQueue=self.getActiveObjectQueue()
activeObjectQueue.remove(entity) #remove the Entity from the queue
if self.receiver:
receiverObject=self.getReceiverObject()
receiverObjectQueue=receiverObject.getActiveObjectQueue()
receiverObjectQueue.append(entity)
self.receiver.appendEntity(entity)
self.failureTimeInCurrentEntity=0
self.downTimeInTryingToReleaseCurrentEntity=0
......@@ -181,6 +179,15 @@ class CoreObject(Process):
self.wipStatList.append([now(), len(activeObjectQueue)])
return entity
#===========================================================================
# appends entity to the receiver object. to be called by the removeEntity of the giver
# this method is created to be overridden by the Assembly class in its getEntity where Frames are loaded
#===========================================================================
def appendEntity(self,entity=None):
activeObject=self.getActiveObject()
activeObjectQueue=self.getActiveObjectQueue()
activeObjectQueue.append(entity)
# =======================================================================
# called be getEntity it identifies the Entity
# to be obtained so that
......
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