Commit d2c72827 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Jérome Perrin

CapacityStationExit only to output if it is the final one

parent 4de3d13e
...@@ -64,3 +64,12 @@ class CapacityStationExit(Exit): ...@@ -64,3 +64,12 @@ class CapacityStationExit(Exit):
if self.isLocked: if self.isLocked:
return False return False
return Exit.canAccept(self) 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment