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
8c720089
Commit
8c720089
authored
Feb 11, 2014
by
Ioannis Papagiannopoulos
Committed by
Jérome Perrin
Feb 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redundant code removed from globals
parent
c97edf9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
dream/simulation/Globals.py
dream/simulation/Globals.py
+0
-8
No files found.
dream/simulation/Globals.py
View file @
8c720089
...
...
@@ -158,14 +158,6 @@ def setWIP(entityList):
# update the receiver and the next list of the object
object
.
next
=
nextObjects
maxTimeWaiting
=
0
# dummy variable counting the time a successor is waiting
for
nextObject
in
object
.
next
:
if
(
nextObject
.
canAccept
(
object
)):
# if a successor can accept an object
timeWaiting
=
now
()
-
nextObject
.
timeLastEntityLeft
# the time it has been waiting is updated and stored in dummy variable timeWaiting
if
(
timeWaiting
>
maxTimeWaiting
or
maxTimeWaiting
==
0
):
# if the timeWaiting is the maximum among the ones of the successors
maxTimeWaiting
=
timeWaiting
object
.
receiver
=
nextObject
# set the receiver as the longest waiting possible receiver
# in the next loops, check the other successors in the previous list
entity
.
remainingRoute
.
pop
(
0
)
# remove data from the remaining route.
entity
.
schedule
.
append
([
object
,
now
()])
#append the time to schedule so that it can be read in the result
entity
.
currentStation
=
object
# update the current station of the entity
...
...
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