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
d2c72827
Commit
d2c72827
authored
Jun 11, 2014
by
Georgios Dagkakis
Committed by
Jérome Perrin
Jun 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CapacityStationExit only to output if it is the final one
parent
4de3d13e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
dream/simulation/CapacityStationExit.py
dream/simulation/CapacityStationExit.py
+11
-2
No files found.
dream/simulation/CapacityStationExit.py
View file @
d2c72827
...
...
@@ -44,7 +44,7 @@ class CapacityStationExit(Exit):
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.
# means it is the end of the system.
def
initialize
(
self
):
Exit
.
initialize
(
self
)
self
.
isLocked
=
True
...
...
@@ -63,4 +63,13 @@ class CapacityStationExit(Exit):
def
canAccept
(
self
,
callerObject
=
None
):
if
self
.
isLocked
:
return
False
return
Exit
.
canAccept
(
self
)
\ No newline at end of file
return
Exit
.
canAccept
(
self
)
# =======================================================================
# outputs results to JSON File
# =======================================================================
def
outputResultsJSON
(
self
):
# output results only for the last exit
if
not
self
.
nextCapacityStationBuffer
:
Exit
.
outputResultsJSON
(
self
)
\ No newline at end of file
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