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
0963f6f3
Commit
0963f6f3
authored
Jan 06, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CapacityObjects to handle lists smoother
parent
0eba053a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
6 deletions
+26
-6
dream/simulation/applications/CapacityStations/CapacityEntity.py
...imulation/applications/CapacityStations/CapacityEntity.py
+5
-1
dream/simulation/applications/CapacityStations/CapacityProject.py
...mulation/applications/CapacityStations/CapacityProject.py
+5
-1
dream/simulation/applications/CapacityStations/CapacityStation.py
...mulation/applications/CapacityStations/CapacityStation.py
+5
-1
dream/simulation/applications/CapacityStations/CapacityStationBuffer.py
...on/applications/CapacityStations/CapacityStationBuffer.py
+5
-1
dream/simulation/applications/CapacityStations/CapacityStationExit.py
...tion/applications/CapacityStations/CapacityStationExit.py
+6
-2
No files found.
dream/simulation/applications/CapacityStations/CapacityEntity.py
View file @
0963f6f3
...
...
@@ -42,7 +42,11 @@ class CapacityEntity(Entity):
self
.
requiredCapacity
=
requiredCapacity
# the capacity that the capacity entity requires from the following station
self
.
shouldMove
=
False
from
dream.simulation.Globals
import
G
G
.
CapacityEntityList
.
append
(
self
)
if
hasattr
(
G
,
'CapacityEntityList'
):
G
.
CapacityEntityList
.
append
(
self
)
else
:
G
.
CapacityEntityList
=
[]
G
.
CapacityEntityList
.
append
(
self
)
def
initialize
(
self
):
Entity
.
initialize
(
self
)
...
...
dream/simulation/applications/CapacityStations/CapacityProject.py
View file @
0963f6f3
...
...
@@ -44,7 +44,11 @@ class CapacityProject(Entity):
# the assembly space the project requires
self
.
assemblySpaceRequirement
=
assemblySpaceRequirement
from
dream.simulation.Globals
import
G
G
.
CapacityProjectList
.
append
(
self
)
if
hasattr
(
G
,
'CapacityProjectList'
):
G
.
CapacityProjectList
.
append
(
self
)
else
:
G
.
CapacityProjectList
=
[]
G
.
CapacityProjectList
.
append
(
self
)
def
initialize
(
self
):
self
.
projectSchedule
=
[]
# a list of dicts to keep the schedule
...
...
dream/simulation/applications/CapacityStations/CapacityStation.py
View file @
0963f6f3
...
...
@@ -74,7 +74,11 @@ class CapacityStation(Queue):
self
.
utilisationDict
=
[]
# a list of dicts for the utilization results
self
.
detailedWorkPlan
=
[]
# a list of dicts to keep detailed data
from
dream.simulation.Globals
import
G
G
.
CapacityStationList
.
append
(
self
)
if
hasattr
(
G
,
'CapacityStationList'
):
G
.
CapacityStationList
.
append
(
self
)
else
:
G
.
CapacityStationList
=
[]
G
.
CapacityStationList
.
append
(
self
)
def
canAccept
(
self
,
callerObject
=
None
):
if
self
.
isLocked
:
...
...
dream/simulation/applications/CapacityStations/CapacityStationBuffer.py
View file @
0963f6f3
...
...
@@ -41,7 +41,11 @@ class CapacityStationBuffer(Queue):
self
.
isLocked
=
True
self
.
requireFullProject
=
requireFullProject
# flag that shows if here the whole project is assembled
from
dream.simulation.Globals
import
G
G
.
CapacityStationBufferList
.
append
(
self
)
if
hasattr
(
G
,
'CapacityStationBufferList'
):
G
.
CapacityStationBufferList
.
append
(
self
)
else
:
G
.
CapacityStationBufferList
=
[]
G
.
CapacityStationBufferList
.
append
(
self
)
self
.
notRequiredOperations
=
notRequiredOperations
# operations that are not required to be assembled
...
...
dream/simulation/applications/CapacityStations/CapacityStationExit.py
View file @
0963f6f3
...
...
@@ -45,8 +45,12 @@ class CapacityStationExit(Exit):
# means it is the end of the system.
self
.
nextCapacityStationBuffer
=
None
# the next buffer. If it is None it
from
dream.simulation.Globals
import
G
G
.
CapacityStationExitList
.
append
(
self
)
# means it is the end of the system.
if
hasattr
(
G
,
'CapacityStationExitList'
):
G
.
CapacityStationExitList
.
append
(
self
)
else
:
G
.
CapacityStationExitList
=
[]
G
.
CapacityStationExitList
.
append
(
self
)
def
initialize
(
self
):
Exit
.
initialize
(
self
)
self
.
isLocked
=
True
...
...
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