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
5eb9e092
Commit
5eb9e092
authored
Jun 09, 2014
by
Georgios Dagkakis
Committed by
Jérome Perrin
Jun 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
capacityStationExit enhancements
parent
d6cc276e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
dream/simulation/CapacityStationExit.py
dream/simulation/CapacityStationExit.py
+13
-1
No files found.
dream/simulation/CapacityStationExit.py
View file @
5eb9e092
...
...
@@ -43,10 +43,22 @@ class CapacityStationExit(Exit):
self
.
isLocked
=
True
self
.
nextCapacityStationBufferId
=
nextCapacityStationBufferId
# the id of the next station. If it is None it
# means it is the end of the system.
self
.
nextCapacityStationBuffer
=
None
# the next buffer. If it is None it
# means it is the end of the system.
def
initialize
(
self
):
Exit
.
initialize
(
self
)
self
.
isLocked
=
True
# list that contains the entities that are just obtained so that they can be
# moved to the next buffer
self
.
currentlyObtainedEntities
=
[]
# find the next buffer
if
self
.
nextCapacityStationBufferId
:
from
Globals
import
G
# find the project that the capacity entity is part of
for
capacityStationBuffer
in
G
.
CapacityStationBufferList
:
if
capacityStationBuffer
.
id
==
self
.
nextCapacityStationBufferId
:
self
.
nextCapacityStationBuffer
=
capacityStationBuffer
break
def
canAccept
(
self
,
callerObject
=
None
):
if
self
.
isLocked
:
...
...
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