You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the only way to parse a problem is to parse the problem together with the domain. But when parsing a list of problems one wouldn't need to re-parse the domain everytime, but could reuse the parsed domain object.
Is it possible with the current parser to set this up? I am thinking of an API like this:
domain = PDDLParser(domain_path).get_domain()
for prob_path in prob_fname_list:
prob_parser = PDDLParser(domain, problem_path)
problem, factory = prob_parser.get_problem(), prob_parser.get_pddl_factories()
...
The text was updated successfully, but these errors were encountered:
Currently, the approach you're suggesting isn’t possible, although we agree that the proposed interface is more elegant than the one in use.
The memory management for problem instances is tightly integrated with the domain instance. For example, domain constants are stored alongside problem objects. While it's technically feasible to separate them, the current approach is only marginally more verbose, and we don’t foresee any significant benefits from the improved interface. Do you have any specific use cases in mind where this change would have a notable impact? If not, we’re inclined not to prioritize this change.
The use case is mostly the more intuitive API (+ insignificant performance improvements I would imagine). So far, it has only come up in a project where I am parsing multiple problems of the same domain to convert them to graphs, while doing some sanity checks. This is not really an urgent issue, was mostly wondering whether the API choice is deliberate for some reason.
Currently the only way to parse a problem is to parse the problem together with the domain. But when parsing a list of problems one wouldn't need to re-parse the domain everytime, but could reuse the parsed domain object.
Is it possible with the current parser to set this up? I am thinking of an API like this:
The text was updated successfully, but these errors were encountered: