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
9aae101d
Commit
9aae101d
authored
Oct 09, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction in BatchReassemblyBlocking
parent
b8803b97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
dream/simulation/BatchReassemblyBlocking.py
dream/simulation/BatchReassemblyBlocking.py
+3
-4
No files found.
dream/simulation/BatchReassemblyBlocking.py
View file @
9aae101d
...
...
@@ -30,9 +30,7 @@ from BatchReassembly import BatchReassembly
class
BatchReassemblyBlocking
(
BatchReassembly
):
# =======================================================================
# This is only for a BatchScrapMachine that is followed by a BatchDecomposition
# We consider that since this is in essence one station, the BatchScrapMachine
# should be blocked if the BatchDecomposition is blocked
# extend behaviour to send canDispose signal to the correct predecessor
# =======================================================================
def
removeEntity
(
self
,
entity
=
None
):
activeEntity
=
BatchReassembly
.
removeEntity
(
self
,
entity
)
...
...
@@ -45,7 +43,8 @@ class BatchReassemblyBlocking(BatchReassembly):
if
issubclass
(
previous
.
__class__
,
Queue
):
if
previous
.
expectedSignals
[
'canDispose'
]:
self
.
sendSignal
(
receiver
=
previous
,
signal
=
previous
.
canDispose
,
sender
=
station
)
break
break
# continue with further previous stations
else
:
station
=
previous
return
activeEntity
...
...
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