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