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
e7bf637d
Commit
e7bf637d
authored
Sep 26, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Oct 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
currentStation reset as an entity is removed
parent
b105fb35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
dream/simulation/OrderDecomposition.py
dream/simulation/OrderDecomposition.py
+5
-5
No files found.
dream/simulation/OrderDecomposition.py
View file @
e7bf637d
...
...
@@ -191,6 +191,7 @@ class OrderDecomposition(CoreObject):
if
entity
.
type
==
'OrderDesign'
:
self
.
orderToBeDecomposed
=
entity
.
order
activeObjectQueue
.
remove
(
entity
)
#remove the order from the internal Queue
entity
.
currentStation
=
None
# reset the currentStation of the entity
self
.
printTrace
(
entity
.
id
,
destroy
=
self
.
id
)
# if the entity is in G.pendingEntities list remove it from there
if
entity
in
G
.
pendingEntities
:
...
...
@@ -227,10 +228,10 @@ class OrderDecomposition(CoreObject):
name
=
component
.
get
(
'name'
,
'not found'
)
try
:
# there is the case were the component of the componentsList of the parent Order
# is of type Mould and therefore has no argument componentType
# in this case no Mould object should be initiated
if
component
.
get
(
'_class'
,
'not found'
)
==
'Dream.Mould'
:
raise
MouldComponentException
(
'there is a mould in the componentList'
)
# is of type Mould
or OrderDesign
and therefore has no argument componentType
# in this case no Mould o
r OrderDesign o
bject should be initiated
if
component
.
get
(
'_class'
,
'not found'
)
==
'Dream.Mould'
or
component
.
get
(
'_class'
,
'not found'
)
==
'Dream.OrderDesign'
:
raise
MouldComponentException
(
'there is a mould
/orderDesign
in the componentList'
)
# variable that holds the componentType which can be Basic/Secondary/Auxiliary
componentType
=
component
.
get
(
'componentType'
,
'Basic'
)
# the component that needs the auxiliary (if the componentType is "Auxiliary") during its processing
...
...
@@ -299,7 +300,6 @@ class OrderDecomposition(CoreObject):
# else:
# self.orderToBeDecomposed.auxiliaryComponentsList.append(OC)
#===============================================================================
G
.
OrderComponentList
.
append
(
OC
)
G
.
JobList
.
append
(
OC
)
G
.
WipList
.
append
(
OC
)
...
...
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