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
e9dd5605
Commit
e9dd5605
authored
Aug 08, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
capacity stations to read information on shared resources
parent
ff890792
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
dream/simulation/CapacityStation.py
dream/simulation/CapacityStation.py
+4
-1
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+2
-1
No files found.
dream/simulation/CapacityStation.py
View file @
e9dd5605
...
...
@@ -39,7 +39,8 @@ class CapacityStation(Queue):
#===========================================================================
# the __init__ method of the CapacityStation
#===========================================================================
def
__init__
(
self
,
id
,
name
,
capacity
=
float
(
"inf"
),
intervalCapacity
=
[],
schedulingRule
=
"FIFO"
,
gatherWipStat
=
False
):
def
__init__
(
self
,
id
,
name
,
capacity
=
float
(
"inf"
),
intervalCapacity
=
[],
schedulingRule
=
"FIFO"
,
gatherWipStat
=
False
,
sharedResources
=
{}):
Queue
.
__init__
(
self
,
id
,
name
,
capacity
=
capacity
)
# a list that holds the capacity (manhours) that is available in each interval
self
.
intervalCapacity
=
intervalCapacity
...
...
@@ -47,6 +48,8 @@ class CapacityStation(Queue):
self
.
remainingIntervalCapacity
=
list
(
self
.
intervalCapacity
)
# blocks the entry of the capacity station, so that it can be manipulated to accept only in certain moments of simulation time
self
.
isLocked
=
True
# dict that holds information if station shares workpower with some other station
self
.
sharedResources
=
sharedResources
def
initialize
(
self
):
Queue
.
initialize
(
self
)
...
...
dream/simulation/LineGenerationJSON.py
View file @
e9dd5605
...
...
@@ -804,7 +804,8 @@ def createObjects():
id
=
element
.
get
(
'id'
,
'not found'
)
name
=
element
.
get
(
'name'
,
'not found'
)
intervalCapacity
=
element
.
get
(
'intervalCapacity'
,
[])
CS
=
CapacityStation
(
id
,
name
,
intervalCapacity
=
intervalCapacity
)
sharedResources
=
element
.
get
(
'sharedResources'
,
{})
CS
=
CapacityStation
(
id
,
name
,
intervalCapacity
=
intervalCapacity
,
sharedResources
=
sharedResources
)
CS
.
nextIds
=
getSuccessorList
(
id
)
G
.
CapacityStationList
.
append
(
CS
)
G
.
ObjList
.
append
(
CS
)
...
...
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