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
5fa377f1
Commit
5fa377f1
authored
Mar 03, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
further check in Machine.run
parent
84bea9fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
dream/simulation/Machine.py
dream/simulation/Machine.py
+6
-1
No files found.
dream/simulation/Machine.py
View file @
5fa377f1
...
@@ -543,6 +543,7 @@ class Machine(CoreObject):
...
@@ -543,6 +543,7 @@ class Machine(CoreObject):
# =======================================================================
# =======================================================================
def
run
(
self
):
def
run
(
self
):
# request for allocation if needed
# request for allocation if needed
from
Globals
import
G
self
.
initialAllocationRequest
()
self
.
initialAllocationRequest
()
# execute all through simulation time
# execute all through simulation time
while
1
:
while
1
:
...
@@ -578,6 +579,11 @@ class Machine(CoreObject):
...
@@ -578,6 +579,11 @@ class Machine(CoreObject):
self
.
interruptionEnd
=
self
.
env
.
event
()
self
.
interruptionEnd
=
self
.
env
.
event
()
# try to signal the Giver, otherwise wait until it is requested
# try to signal the Giver, otherwise wait until it is requested
if
self
.
signalGiver
():
if
self
.
signalGiver
():
# XXX cleaner implementation needed
# if there is skilled router the giver should also check
if
G
.
Router
:
if
'Skilled'
in
str
(
G
.
Router
.
__class__
):
continue
break
break
if
self
.
loadOperatorAvailable
in
receivedEvent
:
if
self
.
loadOperatorAvailable
in
receivedEvent
:
transmitter
,
eventTime
=
self
.
loadOperatorAvailable
.
value
transmitter
,
eventTime
=
self
.
loadOperatorAvailable
.
value
...
@@ -586,7 +592,6 @@ class Machine(CoreObject):
...
@@ -586,7 +592,6 @@ class Machine(CoreObject):
self
.
loadOperatorAvailable
=
self
.
env
.
event
()
self
.
loadOperatorAvailable
=
self
.
env
.
event
()
# try to signal the Giver, otherwise wait until it is requested
# try to signal the Giver, otherwise wait until it is requested
if
self
.
signalGiver
():
if
self
.
signalGiver
():
from
Globals
import
G
# XXX cleaner implementation needed
# XXX cleaner implementation needed
# if there is router that is not skilled break
# if there is router that is not skilled break
if
G
.
Router
:
if
G
.
Router
:
...
...
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