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
0eb0563c
Commit
0eb0563c
authored
Aug 11, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
be able to set Batches as WIP in BatchScrapMachine
parent
7807e78b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
dream/simulation/BatchScrapMachine.py
dream/simulation/BatchScrapMachine.py
+4
-0
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+2
-2
No files found.
dream/simulation/BatchScrapMachine.py
View file @
0eb0563c
...
@@ -88,6 +88,10 @@ class BatchScrapMachine(Machine):
...
@@ -88,6 +88,10 @@ class BatchScrapMachine(Machine):
# =======================================================================
# =======================================================================
def
calculateProcessingTime
(
self
):
def
calculateProcessingTime
(
self
):
activeEntity
=
self
.
getActiveObjectQueue
()[
0
]
activeEntity
=
self
.
getActiveObjectQueue
()[
0
]
# this is only for processing of the initial wip
if
self
.
isProcessingInitialWIP
:
if
activeEntity
.
unitsToProcess
:
return
self
.
rng
.
generateNumber
()
*
activeEntity
.
unitsToProcess
return
self
.
rng
.
generateNumber
()
*
activeEntity
.
numberOfUnits
return
self
.
rng
.
generateNumber
()
*
activeEntity
.
numberOfUnits
dream/simulation/LineGenerationJSON.py
View file @
0eb0563c
...
@@ -1167,7 +1167,7 @@ def createWIP():
...
@@ -1167,7 +1167,7 @@ def createWIP():
G
.
WipList
.
append
(
B
)
G
.
WipList
.
append
(
B
)
G
.
EntityList
.
append
(
B
)
G
.
EntityList
.
append
(
B
)
object
=
Globals
.
findObjectById
(
element
[
'id'
])
object
=
Globals
.
findObjectById
(
element
[
'id'
])
B
.
remainingProcessingTime
=
entity
.
get
(
'remainingProcessingTime'
,
{}
)
B
.
unitsToProcess
=
int
(
entity
.
get
(
'unitsToProcess'
,
numberOfUnits
)
)
B
.
currentStation
=
object
B
.
currentStation
=
object
elif
entityClass
==
'Dream.SubBatch'
:
elif
entityClass
==
'Dream.SubBatch'
:
...
@@ -1195,7 +1195,7 @@ def createWIP():
...
@@ -1195,7 +1195,7 @@ def createWIP():
G
.
WipList
.
append
(
SB
)
G
.
WipList
.
append
(
SB
)
G
.
EntityList
.
append
(
SB
)
G
.
EntityList
.
append
(
SB
)
object
=
Globals
.
findObjectById
(
element
[
'id'
])
object
=
Globals
.
findObjectById
(
element
[
'id'
])
SB
.
remainingProcessingTime
=
entity
.
get
(
'remainingProcessingTime'
,
{}
)
SB
.
unitsToProcess
=
int
(
entity
.
get
(
'unitsToProcess'
,
numberOfUnits
)
)
SB
.
currentStation
=
object
SB
.
currentStation
=
object
if
entityClass
==
'Dream.Order'
:
if
entityClass
==
'Dream.Order'
:
...
...
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