Commit 5238fb27 authored by Georgios Dagkakis's avatar Georgios Dagkakis

more objects to reset after signalling

parent b5661200
......@@ -283,6 +283,7 @@ def setWIP(entityList):
if entity.currentStation.expectedSignals['canDispose']:
succeedTuple=(G.env,G.env.now)
entity.currentStation.canDispose.succeed(succeedTuple)
entity.currentStation.expectedSignals['canDispose']=0
# if we are in the start of the simulation the object is of server type then we should send initialWIP signal
# TODO, maybe use 'class_family attribute here'
if G.env.now==0 and entity.currentStation:
......@@ -296,6 +297,7 @@ def setWIP(entityList):
if entity.currentStation.expectedSignals['initialWIP']:
succeedTuple=(G.env,G.env.now)
entity.currentStation.initialWIP.succeed(succeedTuple)
entity.currentStation.expectedSignals['initialWIP']=0
def countIntervalThroughput():
......
......@@ -295,6 +295,7 @@ class MachineJobShop(Machine):
if self.expectedSignals['preemptQueue']:
succeedTuple=(self,self.env.now)
self.preemptQueue.succeed(succeedTuple)
self.expectedSignals['preemptQueue']=0
# TODO: consider the case when a failure has the Station down. The event preempt will not be received now()
# but at a later simulation time.
......
......@@ -59,6 +59,7 @@ class ManPyObject(object):
G.Router.invoked=True
succeedTuple=(G.env,G.env.now)
G.Router.isCalled.succeed(succeedTuple)
G.Router.expectedSignals['isCalled']=0
#===========================================================================
# signalRouter method
......@@ -78,6 +79,7 @@ class ManPyObject(object):
G.Router.invoked=True
succeedTuple=(G.env,G.env.now)
G.Router.isCalled.succeed(succeedTuple)
G.Router.expectedSignals['isCalled']=0
return True
except:
return False
......
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