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
02c8dd5c
Commit
02c8dd5c
authored
Jun 12, 2014
by
Georgios Dagkakis
Committed by
Jérome Perrin
Jun 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main script set to read the isAssembly flag
parent
2ab3d3d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dream/simulation/CapacityStationBuffer.py
dream/simulation/CapacityStationBuffer.py
+1
-2
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+2
-1
No files found.
dream/simulation/CapacityStationBuffer.py
View file @
02c8dd5c
...
...
@@ -35,12 +35,11 @@ class CapacityStationBuffer(Queue):
#===========================================================================
# the __init__ method of the CapacityStationBuffer
#===========================================================================
def
__init__
(
self
,
id
,
name
,
capacity
=
float
(
"inf"
),
isDummy
=
False
,
schedulingRule
=
"FIFO"
,
gatherWipStat
=
False
,
isAssembly
=
False
):
def
__init__
(
self
,
id
,
name
,
isAssembly
=
False
,
capacity
=
float
(
"inf"
),
isDummy
=
False
,
schedulingRule
=
"FIFO"
,
gatherWipStat
=
False
):
Queue
.
__init__
(
self
,
id
,
name
,
capacity
=
capacity
)
self
.
isLocked
=
True
self
.
isAssembly
=
isAssembly
# flag that shows if here the whole project is assembled
def
initialize
(
self
):
Queue
.
initialize
(
self
)
self
.
isLocked
=
True
...
...
dream/simulation/LineGenerationJSON.py
View file @
02c8dd5c
...
...
@@ -806,7 +806,8 @@ def createObjects():
elif
objClass
==
'Dream.CapacityStationBuffer'
:
id
=
element
.
get
(
'id'
,
'not found'
)
name
=
element
.
get
(
'name'
,
'not found'
)
CB
=
CapacityStationBuffer
(
id
,
name
)
isAssembly
=
bool
(
element
.
get
(
'isAssembly'
,
0
))
CB
=
CapacityStationBuffer
(
id
,
name
,
isAssembly
=
isAssembly
)
CB
.
nextIds
=
getSuccessorList
(
id
)
G
.
CapacityStationBufferList
.
append
(
CB
)
G
.
ObjList
.
append
(
CB
)
...
...
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