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
3acf5514
Commit
3acf5514
authored
Aug 08, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
d0fb5df5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
dream/simulation/CapacityStationController.py
dream/simulation/CapacityStationController.py
+1
-5
No files found.
dream/simulation/CapacityStationController.py
View file @
3acf5514
...
...
@@ -212,7 +212,7 @@ class CapacityStationController(EventGenerator):
# loop through the capacity station buffers
for
buffer
in
G
.
CapacityStationBufferList
:
activeObjectQueue
=
buffer
.
getActiveObjectQueue
()
# sort entities according to due date
# sort entities according to due date
of the project that each belongs to
activeObjectQueue
.
sort
(
key
=
lambda
x
:
x
.
capacityProject
.
dueDate
)
station
=
buffer
.
next
[
0
]
# get the station
...
...
@@ -452,10 +452,6 @@ class CapacityStationController(EventGenerator):
return
entity
.
capacityProject
.
assemblySpaceRequirement
<=
availableSpace
return
True
def
checkIfEntityCanMove
(
self
):
pass
# sorts the buffers so if they have shared resources the ones with highest priority will go in front
def
sortBuffers
(
self
):
for
buffer
in
G
.
CapacityStationBufferList
:
...
...
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