Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from abc import abstractmethod
- class Violation:
- @abstractmethod
- def accept(self):
- pass
- class UsedTimeslot(Violation):
- def __init__(self, timeslot):
- self.timeslot = timeslot
- def accept(self, scheduler):
- scheduler.set_timeslot_as_used(self.timeslot)
- class TeamConstraint(Violation):
- def __init__(self, team, timeslot):
- self.team = team
- self.timeslot = timeslot
- def accept(self, team_manager):
- team_manger.dismiss_timeslot(self.team, self.timeslot)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement