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
1f0fc35b
Commit
1f0fc35b
authored
Jun 06, 2014
by
Georgios Dagkakis
Committed by
Jérome Perrin
Jun 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
globals set wip fix
parent
5e40e609
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
dream/simulation/Globals.py
dream/simulation/Globals.py
+5
-3
No files found.
dream/simulation/Globals.py
View file @
1f0fc35b
...
...
@@ -190,7 +190,7 @@ def setWIP(entityList):
# for all the entities in the entityList
for
entity
in
entityList
:
# if the entity is of type Part
if
entity
.
type
==
'Part'
or
entity
.
type
==
'Batch'
or
entity
.
type
==
'SubBatch'
:
if
entity
.
type
==
'Part'
or
entity
.
type
==
'Batch'
or
entity
.
type
==
'SubBatch'
or
entity
.
type
==
'CapacityEntity'
:
object
=
entity
.
currentStation
#identify the object
object
.
getActiveObjectQueue
().
append
(
entity
)
#append the entity to its Queue
entity
.
schedule
.
append
([
object
,
G
.
env
.
now
])
#append the time to schedule so that it can be read in the result
...
...
@@ -230,8 +230,10 @@ def setWIP(entityList):
entity
.
currentStation
=
object
# update the current station of the entity
# if the currentStation of the entity is of type Machine then the entity
# must be processed first and then added to the pendingEntities list
# Its hot flag is not raised
if
not
(
entity
.
currentStation
in
G
.
MachineList
):
# Its hot flag is not raised
# the following to be performed only if there is a current station. Orders, Projects e.t.c do not have
# TODO, maybe we should loop in wiplist here
if
(
not
(
entity
.
currentStation
in
G
.
MachineList
))
and
entity
.
currentStation
:
# variable to inform whether the successors are machines or not
successorsAreMachines
=
True
for
nextObject
in
entity
.
currentStation
.
next
:
...
...
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