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
48d065d9
Commit
48d065d9
authored
Sep 27, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Oct 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
on setWIP for mouldAssembly components are set for assembly
parent
f80fd02d
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 @
48d065d9
...
...
@@ -225,7 +225,9 @@ def setWIP(entityList):
# if the entity is of type Job/OrderComponent/Order/Mould
# XXX Orders do no more run in the system, instead we have OrderDesigns
elif
entity
.
type
in
[
'Job'
,
'OrderComponent'
,
'Order'
,
'OrderDesign'
,
'Mould'
]:
# 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'
,[])
# if the list of starting stations has length greater than one then there is a starting WIP definition error
try
:
...
...
@@ -238,6 +240,9 @@ def setWIP(entityList):
# get the starting station of the entity and load it with it
object
=
findObjectById
(
objectId
)
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
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