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
9d486235
Commit
9d486235
authored
Jun 16, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
isAssembly changed to requireFullProject
parent
ad7a8801
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
dream/simulation/CapacityStationBuffer.py
dream/simulation/CapacityStationBuffer.py
+2
-2
dream/simulation/CapacityStationController.py
dream/simulation/CapacityStationController.py
+2
-2
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+2
-2
No files found.
dream/simulation/CapacityStationBuffer.py
View file @
9d486235
...
...
@@ -35,10 +35,10 @@ class CapacityStationBuffer(Queue):
#===========================================================================
# the __init__ method of the CapacityStationBuffer
#===========================================================================
def
__init__
(
self
,
id
,
name
,
isAssembly
=
False
,
capacity
=
float
(
"inf"
),
isDummy
=
False
,
schedulingRule
=
"FIFO"
,
gatherWipStat
=
False
):
def
__init__
(
self
,
id
,
name
,
requireFullProject
=
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
self
.
requireFullProject
=
requireFullProject
# flag that shows if here the whole project is assembled
def
initialize
(
self
):
Queue
.
initialize
(
self
)
...
...
dream/simulation/CapacityStationController.py
View file @
9d486235
...
...
@@ -189,7 +189,7 @@ class CapacityStationController(EventGenerator):
if
totalAvailableCapacity
<=
0
:
continue
# if the buffer is not assembly
if
not
buffer
.
isAssembly
:
if
not
buffer
.
requireFullProject
:
# calculate the total capacity that is requested
totalRequestedCapacity
=
0
for
entity
in
buffer
.
getActiveObjectQueue
():
...
...
@@ -274,7 +274,7 @@ class CapacityStationController(EventGenerator):
totalCapacityRequirement
=
0
# if the buffer acts as assembly there is no need to calculate the total capacity requirement,
# it will be the one that the project has as a total for this station
if
buffer
.
isAssembly
:
if
buffer
.
requireFullProject
:
totalCapacityRequirement
=
project
.
capacityRequirementDict
[
nextStation
.
id
]
# else calculate the total capacity requirement by adding the one each entity requires
else
:
...
...
dream/simulation/LineGenerationJSON.py
View file @
9d486235
...
...
@@ -812,8 +812,8 @@ def createObjects():
elif
objClass
==
'Dream.CapacityStationBuffer'
:
id
=
element
.
get
(
'id'
,
'not found'
)
name
=
element
.
get
(
'name'
,
'not found'
)
isAssembly
=
bool
(
element
.
get
(
'isAssembly
'
,
0
))
CB
=
CapacityStationBuffer
(
id
,
name
,
isAssembly
=
isAssembly
)
requireFullProject
=
bool
(
element
.
get
(
'requireFullProject
'
,
0
))
CB
=
CapacityStationBuffer
(
id
,
name
,
requireFullProject
=
requireFullProject
)
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