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
b8a0d851
Commit
b8a0d851
authored
Sep 04, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Oct 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MouldAssembly createMould method corrected - operation times reading corrected
parent
7143f6bf
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 @
b8a0d851
...
@@ -232,24 +232,34 @@ class MouldAssembly(MachineJobShop):
...
@@ -232,24 +232,34 @@ class MouldAssembly(MachineJobShop):
firstStep
=
route
.
pop
(
0
)
firstStep
=
route
.
pop
(
0
)
assert
(
self
.
id
in
firstStep
.
get
(
'stationIdsList'
,[])),
\
assert
(
self
.
id
in
firstStep
.
get
(
'stationIdsList'
,[])),
\
'the assembler must be in the mould-to-be-created route
\
'
initial step'
'the assembler must be in the mould-to-be-created route
\
'
initial step'
# normal processing operation
# normal processing operation
processingTime
=
firstStep
[
'processingTime'
]
processingTime
=
firstStep
[
'processingTime'
]
# update the activeObject's processing time according to the readings in the mould's route
# update the activeObject's processing time according to the readings in the mould's route
self
.
distType
=
processingTime
.
get
(
'distributionType'
,
'not found'
)
processDistType
=
processingTime
.
get
(
'distributionType'
,
'not found'
)
self
.
procTime
=
float
(
processingTime
.
get
(
'mean'
,
0
))
procTime
=
float
(
processingTime
.
get
(
'mean'
,
0
))
procOpType
=
processingTime
.
get
(
'operationType'
,
'not found'
)
# can be manual/automatic
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
# setup operation
setupTime
=
firstStep
[
'setupTime'
]
setupTime
=
firstStep
[
'setupTime'
]
# update the activeObject's processing time according to the readings in the mould's route
# update the activeObject's processing time according to the readings in the mould's route
self
.
distType
=
setup
.
get
(
'distributionType'
,
'not found'
)
setupDistType
=
setup
.
get
(
'distributionType'
,
'not found'
)
self
.
setupTime
=
float
(
setup
.
get
(
'mean'
,
0
))
setupTime
=
float
(
setup
.
get
(
'mean'
,
0
))
setupOpType
=
setup
.
get
(
'operationType'
,
'not found'
)
# can be manual/automatic
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
# 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
),
\
route
.
insert
(
0
,
{
'stationIdsList'
:[
str
(
self
.
id
)],
'processingTime'
:{
'distributionType'
:
str
(
processD
istType
),
\
'mean'
:
str
(
self
.
procTime
),
\
'mean'
:
str
(
procTime
),
\
'operationType'
:
str
(
procOpType
)},
\
'operationType'
:
str
(
proc
ess
OpType
)},
\
'setupTime'
:{
'distributionType'
:
str
(
se
lf
.
d
istType
),
\
'setupTime'
:{
'distributionType'
:
str
(
se
tupD
istType
),
\
'mean'
:
str
(
se
lf
.
se
tupTime
),
\
'mean'
:
str
(
setupTime
),
\
'operationType'
:
str
(
setupOpType
)}})
'operationType'
:
str
(
setupOpType
)}})
#Below it is to assign an exit if it was not assigned in JSON
#Below it is to assign an exit if it was not assigned in JSON
#have to talk about it with NEX
#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