Commit 34f1cd04 authored by Georgios Dagkakis's avatar Georgios Dagkakis

fix in broker

parent a56f14de
...@@ -72,6 +72,7 @@ class Broker(ObjectInterruption): ...@@ -72,6 +72,7 @@ class Broker(ObjectInterruption):
# TODO: have to signal Router that broker is asking operator, and wait till the Router decides # TODO: have to signal Router that broker is asking operator, and wait till the Router decides
# ======================================================================= # =======================================================================
def run(self): def run(self):
from Globals import G
while 1: while 1:
# TODO: add new broker event - brokerIsCalled # TODO: add new broker event - brokerIsCalled
...@@ -90,8 +91,6 @@ class Broker(ObjectInterruption): ...@@ -90,8 +91,6 @@ class Broker(ObjectInterruption):
# update the time that the station is waiting for the operator # update the time that the station is waiting for the operator
self.timeWaitForOperatorStarted=self.env.now self.timeWaitForOperatorStarted=self.env.now
#=============================================================== #===============================================================
from Globals import G
# if the victim already holds an entity that means that the machine's operation type # if the victim already holds an entity that means that the machine's operation type
# is no Load or setup, in that case the router is already invoked and the machine is already assigned an operator # is no Load or setup, in that case the router is already invoked and the machine is already assigned an operator
if not self.victimQueueIsEmpty(): if not self.victimQueueIsEmpty():
......
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