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
c1c384a3
Commit
c1c384a3
authored
Feb 14, 2016
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ScheduledBreak: synchronisation check
parent
ab292aef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
dream/simulation/ScheduledBreak.py
dream/simulation/ScheduledBreak.py
+4
-3
No files found.
dream/simulation/ScheduledBreak.py
View file @
c1c384a3
...
@@ -95,9 +95,10 @@ class ScheduledBreak(ObjectInterruption):
...
@@ -95,9 +95,10 @@ class ScheduledBreak(ObjectInterruption):
# if SkilledRouter waits for the station to finish, send this signal to this router
# if SkilledRouter waits for the station to finish, send this signal to this router
from
Globals
import
G
from
Globals
import
G
from
dream.simulation.SkilledOperatorRouter
import
SkilledRouter
from
dream.simulation.SkilledOperatorRouter
import
SkilledRouter
if
G
.
RouterList
[
0
].
__class__
is
SkilledRouter
:
if
G
.
RouterList
[
0
].
__class__
is
SkilledRouter
and
\
if
station
.
id
in
G
.
RouterList
[
0
].
expectedFinishSignalsDict
.
keys
():
station
.
id
in
G
.
RouterList
[
0
].
expectedFinishSignalsDict
.
keys
()
and
\
self
.
sendSignal
(
receiver
=
G
.
RouterList
[
0
],
signal
=
G
.
RouterList
[
0
].
expectedFinishSignalsDict
[
station
.
id
],
not
G
.
RouterList
[
0
].
expectedFinishSignalsDict
[
station
.
id
].
triggered
:
self
.
sendSignal
(
receiver
=
G
.
RouterList
[
0
],
signal
=
G
.
RouterList
[
0
].
expectedFinishSignalsDict
[
station
.
id
],
sender
=
station
)
sender
=
station
)
if
self
.
victim
.
schedule
:
if
self
.
victim
.
schedule
:
if
not
self
.
victim
.
schedule
[
-
1
].
get
(
"exitTime"
,
None
):
if
not
self
.
victim
.
schedule
[
-
1
].
get
(
"exitTime"
,
None
):
...
...
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