JobShopProblem is now a Mapping, not a list
- implementing all interface functions for JobShopProblem to behave like a Mapping (e.g. dict) with (int, int) keys this implements and closes #14
This commit is contained in:
parent
edd413db54
commit
252f3a824e
2 changed files with 33 additions and 4 deletions
|
@ -45,7 +45,7 @@ class JobShop1Visitor(JobShopVisitor):
|
|||
return None
|
||||
|
||||
|
||||
def parse_string(inputdata: str) -> JobShopProblem:
|
||||
def parse_string(inputdata: str) -> List[JobShopProblem]:
|
||||
"""parse string with jobshop1-formatted data (multiple problem instances)
|
||||
and return list of JobShopProblem s"""
|
||||
parse_tree = parser.parse(inputdata)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue