CoreObject prin comments added

parent 699be5b0
......@@ -323,6 +323,7 @@ class CoreObject(Process):
possibleReceivers=[]
for object in [x for x in self.next if x.canAccept(activeObject)]:
possibleReceivers.append(object)
# print now(), self.id,'possibleReceivers',[str(x.id) for x in possibleReceivers]
if possibleReceivers:
activeObject.receiver=activeObject.selectReceiver(possibleReceivers)
activeObject.receiver.giver=activeObject
......@@ -371,6 +372,7 @@ class CoreObject(Process):
for object in [x for x in activeObject.previous if(not x is activeObject)]:
if object.haveToDispose(activeObject):
possibleGivers.append(object)
# print 'possibleGivers:', [str(x.id) for x in possibleGivers]
if possibleGivers:
activeObject.giver=activeObject.selectGiver(possibleGivers)
activeObject.giver.receiver=activeObject
......@@ -578,12 +580,14 @@ class CoreObject(Process):
# assign Exit of the object
# =======================================================================
def assignExitTo(self):
# print self.id, 'assignExit'
self.exitAssignedToReceiver = self.receiver
# =======================================================================
# unblock the object
# =======================================================================
def unAssignExit(self):
# print now(),self.id, 'unassignExit'
self.exitAssignedToReceiver = None
# =======================================================================
......
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