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
a80a9049
Commit
a80a9049
authored
Sep 04, 2014
by
Ioannis Papagiannopoulos
Committed by
Jérome Perrin
Feb 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MouldAssembly createMould method corrected - operation times reading corrected
parent
de5a2eda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
dream/simulation/MouldAssembly.py
dream/simulation/MouldAssembly.py
+20
-10
No files found.
dream/simulation/MouldAssembly.py
View file @
a80a9049
...
...
@@ -232,24 +232,34 @@ class MouldAssembly(MachineJobShop):
firstStep
=
route
.
pop
(
0
)
assert
(
self
.
id
in
firstStep
.
get
(
'stationIdsList'
,[])),
\
'the assembler must be in the mould-to-be-created route
\
'
initial step'
# normal processing operation
processingTime
=
firstStep
[
'processingTime'
]
# update the activeObject's processing time according to the readings in the mould's route
self
.
distType
=
processingTime
.
get
(
'distributionType'
,
'not found'
)
self
.
procTime
=
float
(
processingTime
.
get
(
'mean'
,
0
))
procOpType
=
processingTime
.
get
(
'operationType'
,
'not found'
)
# can be manual/automatic
processDistType
=
processingTime
.
get
(
'distributionType'
,
'not found'
)
procTime
=
float
(
processingTime
.
get
(
'mean'
,
0
))
processOpType
=
processingTime
.
get
(
'operationType'
,
'not found'
)
# can be manual/automatic
processingTime
=
self
.
getOperationTime
(
processingTime
)
self
.
rng
=
RandomNumberGenerator
(
self
,
**
processingTime
)
self
.
procTime
=
self
.
rng
.
generateNumber
()
# setup operation
setupTime
=
firstStep
[
'setupTime'
]
# update the activeObject's processing time according to the readings in the mould's route
self
.
distType
=
setup
.
get
(
'distributionType'
,
'not found'
)
self
.
setupTime
=
float
(
setup
.
get
(
'mean'
,
0
))
setupDistType
=
setup
.
get
(
'distributionType'
,
'not found'
)
setupTime
=
float
(
setup
.
get
(
'mean'
,
0
))
setupOpType
=
setup
.
get
(
'operationType'
,
'not found'
)
# can be manual/automatic
setupTime
=
self
.
getOperationTime
(
setupTime
)
self
.
stpRng
=
RandomNumberGenerator
(
self
,
**
setupTime
)
# update the first step of the route with the activeObjects id as sole element of the stationIdsList
route
.
insert
(
0
,
{
'stationIdsList'
:[
str
(
self
.
id
)],
'processingTime'
:{
'distributionType'
:
str
(
self
.
d
istType
),
\
'mean'
:
str
(
self
.
procTime
),
\
'operationType'
:
str
(
procOpType
)},
\
'setupTime'
:{
'distributionType'
:
str
(
se
lf
.
d
istType
),
\
'mean'
:
str
(
se
lf
.
se
tupTime
),
\
route
.
insert
(
0
,
{
'stationIdsList'
:[
str
(
self
.
id
)],
'processingTime'
:{
'distributionType'
:
str
(
processD
istType
),
\
'mean'
:
str
(
procTime
),
\
'operationType'
:
str
(
proc
ess
OpType
)},
\
'setupTime'
:{
'distributionType'
:
str
(
se
tupD
istType
),
\
'mean'
:
str
(
setupTime
),
\
'operationType'
:
str
(
setupOpType
)}})
#Below it is to assign an exit if it was not assigned in JSON
#have to talk about it with NEX
...
...
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