Commit 3acf5514 authored by Georgios Dagkakis's avatar Georgios Dagkakis

cleanup

parent d0fb5df5
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment