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
83cbe975
Commit
83cbe975
authored
Aug 11, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction in reading of SubBatches as wip
parent
fe105a4f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
dream/simulation/Globals.py
dream/simulation/Globals.py
+7
-4
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+3
-3
No files found.
dream/simulation/Globals.py
View file @
83cbe975
...
@@ -191,6 +191,9 @@ def setWIP(entityList):
...
@@ -191,6 +191,9 @@ def setWIP(entityList):
for
entity
in
entityList
:
for
entity
in
entityList
:
# if the entity is of type Part
# if the entity is of type Part
if
entity
.
type
==
'Part'
or
entity
.
type
==
'Batch'
or
entity
.
type
==
'SubBatch'
or
entity
.
type
==
'CapacityEntity'
:
if
entity
.
type
==
'Part'
or
entity
.
type
==
'Batch'
or
entity
.
type
==
'SubBatch'
or
entity
.
type
==
'CapacityEntity'
:
# these entities have to have a currentStation.
# TODO apply a more generic approach so that all need to have
if
entity
.
currentStation
:
object
=
entity
.
currentStation
#identify the object
object
=
entity
.
currentStation
#identify the object
object
.
getActiveObjectQueue
().
append
(
entity
)
#append the entity to its Queue
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
entity
.
schedule
.
append
([
object
,
G
.
env
.
now
])
#append the time to schedule so that it can be read in the result
...
@@ -228,7 +231,7 @@ def setWIP(entityList):
...
@@ -228,7 +231,7 @@ def setWIP(entityList):
entity
.
remainingRoute
.
pop
(
0
)
# remove data from the remaining route.
entity
.
remainingRoute
.
pop
(
0
)
# remove data from the remaining route.
entity
.
schedule
.
append
([
object
,
G
.
env
.
now
])
#append the time to schedule so that it can be read in the result
entity
.
schedule
.
append
([
object
,
G
.
env
.
now
])
#append the time to schedule so that it can be read in the result
entity
.
currentStation
=
object
# update the current station of the entity
# if the currentStation of the entity is of type Machine then 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
# must be processed first and then added to the pendingEntities list
# Its hot flag is not raised
# Its hot flag is not raised
...
...
dream/simulation/LineGenerationJSON.py
View file @
83cbe975
...
@@ -1186,9 +1186,9 @@ def createWIP():
...
@@ -1186,9 +1186,9 @@ def createWIP():
batch
.
numberOfUnits
+=
numberOfUnits
batch
.
numberOfUnits
+=
numberOfUnits
else
:
#if the parent batch was not found create it
else
:
#if the parent batch was not found create it
batch
=
Batch
(
parentBatchId
,
parentBatchName
,
numberOfUnits
)
batch
=
Batch
(
parentBatchId
,
parentBatchName
,
numberOfUnits
)
G
.
BatchList
.
append
(
B
)
G
.
BatchList
.
append
(
batch
)
G
.
WipList
.
append
(
B
)
G
.
WipList
.
append
(
batch
)
G
.
EntityList
.
append
(
B
)
G
.
EntityList
.
append
(
batch
)
SB
=
SubBatch
(
id
,
name
,
numberOfUnits
=
numberOfUnits
,
parentBatch
=
batch
)
SB
=
SubBatch
(
id
,
name
,
numberOfUnits
=
numberOfUnits
,
parentBatch
=
batch
)
G
.
SubBatchList
.
append
(
SB
)
G
.
SubBatchList
.
append
(
SB
)
...
...
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