Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
34f1cd04
Commit
34f1cd04
authored
Apr 17, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix in broker
parent
a56f14de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
dream/simulation/OperatedPoolBroker.py
dream/simulation/OperatedPoolBroker.py
+1
-2
No files found.
dream/simulation/OperatedPoolBroker.py
View file @
34f1cd04
...
@@ -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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment