Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __init__(self,rawData):
- self.allROs = [] # collection of all relief opportunities aka array of ReliefOpp objects
- self.allWPs = [] # all work pieces
- self.allShifts = [] # all candidate shifts
- self.schedule = Schedule() # creates Schedule Object, which is a list of shifts making up the schedule
- self.prepData(rawData) #
- def alg_firstEncountered(self):
- for w in self.allWPs: # scan work pieces sequentially
- if w.coverCount == 0:
- s = w.shifts[0]
- self.schedule.addShift(s)
- s.selected()
- self.schedule.rm_redundantShifts()
- self.schedule.printSchedule()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement