Commit ca99ff3d authored by Georgios Dagkakis's avatar Georgios Dagkakis

temporary correction in Machine.run

parent 375387dc
......@@ -576,14 +576,21 @@ class Machine(CoreObject):
assert eventTime==self.env.now, 'interruptionEnd received later than created'
self.printTrace(self.id, interruptionEnd=str(eventTime))
self.interruptionEnd=self.env.event()
# try to signal the Giver, otherwise wait until it is requested
if self.signalGiver():
break
if self.loadOperatorAvailable in receivedEvent:
transmitter, eventTime=self.loadOperatorAvailable.value
assert eventTime==self.env.now,'loadOperatorAvailable received later than created'
self.printTrace(self.id,loadOperatorAvailable=str(eventTime))
self.loadOperatorAvailable=self.env.event()
# try to signal the Giver, otherwise wait until it is requested
if self.signalGiver():
break
# try to signal the Giver, otherwise wait until it is requested
if self.signalGiver():
from Globals import G
if G.Router:
if not 'Skilled' in str(G.Router.__class__):
break
continue
if self.initialWIP in receivedEvent:
transmitter, eventTime=self.initialWIP.value
assert transmitter==self.env, 'initialWIP was not sent by the Environment'
......
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