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
ca99ff3d
Commit
ca99ff3d
authored
Mar 02, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temporary correction in Machine.run
parent
375387dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
dream/simulation/Machine.py
dream/simulation/Machine.py
+10
-3
No files found.
dream/simulation/Machine.py
View file @
ca99ff3d
...
...
@@ -576,6 +576,9 @@ class Machine(CoreObject):
assert
eventTime
==
self
.
env
.
now
,
'interruptionEnd received later than created'
self
.
printTrace
(
self
.
id
,
interruptionEnd
=
str
(
eventTime
))
self
.
interruptionEnd
=
self
.
env
.
event
()
# try to signal the Giver, otherwise wait until it is requested
if
self
.
signalGiver
():
break
if
self
.
loadOperatorAvailable
in
receivedEvent
:
transmitter
,
eventTime
=
self
.
loadOperatorAvailable
.
value
assert
eventTime
==
self
.
env
.
now
,
'loadOperatorAvailable received later than created'
...
...
@@ -583,7 +586,11 @@ class Machine(CoreObject):
self
.
loadOperatorAvailable
=
self
.
env
.
event
()
# try to signal the Giver, otherwise wait until it is requested
if
self
.
signalGiver
():
from
Globals
import
G
if
G
.
Router
:
if
not
'Skilled'
in
str
(
G
.
Router
.
__class__
):
break
continue
if
self
.
initialWIP
in
receivedEvent
:
transmitter
,
eventTime
=
self
.
initialWIP
.
value
assert
transmitter
==
self
.
env
,
'initialWIP was not sent by the Environment'
...
...
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