Commit 072e8183 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

Queue router signalling due to level related controls updated with new attributes updates

parent 102e3221
...@@ -175,6 +175,8 @@ class Queue(CoreObject): ...@@ -175,6 +175,8 @@ class Queue(CoreObject):
if self.level: if self.level:
if not len(self.getActiveObjectQueue()): if not len(self.getActiveObjectQueue()):
from Globals import G from Globals import G
G.Router.allocation=True
G.Router.waitEndProcess=True
if not G.Router.invoked: if not G.Router.invoked:
G.Router.invoked=True G.Router.invoked=True
G.Router.isCalled.succeed(G.env.now) G.Router.isCalled.succeed(G.env.now)
...@@ -204,6 +206,8 @@ class Queue(CoreObject): ...@@ -204,6 +206,8 @@ class Queue(CoreObject):
if self.level: if self.level:
if len(self.getActiveObjectQueue())==self.level: if len(self.getActiveObjectQueue())==self.level:
from Globals import G from Globals import G
G.Router.allocation=True
G.Router.waitEndProcess=True
if not G.Router.invoked: if not G.Router.invoked:
G.Router.invoked=True G.Router.invoked=True
G.Router.isCalled.succeed(G.env.now) G.Router.isCalled.succeed(G.env.now)
......
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