helper method to extract single jobs

mapping_problem_helper
Maximilian Schlosser 2017-07-09 13:15:30 +02:00
parent 252f3a824e
commit 4204969da9
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ class JobShopProblem(Mapping):
def __len__(self) -> int:
return sum(map(len, self.problem_data))
def get_tasks_by_job(self, job):
return self.problem_data[job]
class JobShopVisitor(arpeggio.PTNodeVisitor):
"""contains visitor functions needed for both jobshop1 (list of instances)