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
b1f8a4a6
Commit
b1f8a4a6
authored
Sep 27, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Nov 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
on setWIP for mouldAssembly components are set for assembly
parent
d9ebbb46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
dream/simulation/Globals.py
dream/simulation/Globals.py
+5
-0
No files found.
dream/simulation/Globals.py
View file @
b1f8a4a6
...
@@ -226,7 +226,9 @@ def setWIP(entityList):
...
@@ -226,7 +226,9 @@ def setWIP(entityList):
# if the entity is of type Job/OrderComponent/Order/Mould
# if the entity is of type Job/OrderComponent/Order/Mould
# XXX Orders do no more run in the system, instead we have OrderDesigns
# XXX Orders do no more run in the system, instead we have OrderDesigns
elif
entity
.
type
in
[
'Job'
,
'OrderComponent'
,
'Order'
,
'OrderDesign'
,
'Mould'
]:
elif
entity
.
type
in
[
'Job'
,
'OrderComponent'
,
'Order'
,
'OrderDesign'
,
'Mould'
]:
# find the list of starting station of the entity
# find the list of starting station of the entity
# XXX if the entity is in wip then the current station is already defined and the remainingRoute has to be redefined
currentObjectIds
=
entity
.
remainingRoute
[
0
].
get
(
'stationIdsList'
,[])
currentObjectIds
=
entity
.
remainingRoute
[
0
].
get
(
'stationIdsList'
,[])
# if the list of starting stations has length greater than one then there is a starting WIP definition error
# if the list of starting stations has length greater than one then there is a starting WIP definition error
try
:
try
:
...
@@ -239,6 +241,9 @@ def setWIP(entityList):
...
@@ -239,6 +241,9 @@ def setWIP(entityList):
# get the starting station of the entity and load it with it
# get the starting station of the entity and load it with it
object
=
findObjectById
(
objectId
)
object
=
findObjectById
(
objectId
)
object
.
getActiveObjectQueue
().
append
(
entity
)
# append the entity to its Queue
object
.
getActiveObjectQueue
().
append
(
entity
)
# append the entity to its Queue
# if the entity is to be appended to a mouldAssemblyBuffer then it is readyForAsselbly
if
object
.
__class__
.
__name__
==
'MouldAssemblyBuffer'
:
entity
.
readyForAssembly
=
1
# read the IDs of the possible successors of the object
# read the IDs of the possible successors of the object
nextObjectIds
=
entity
.
remainingRoute
[
1
].
get
(
'stationIdsList'
,[])
nextObjectIds
=
entity
.
remainingRoute
[
1
].
get
(
'stationIdsList'
,[])
...
...
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