wlplan.planning
- parse_domain(domain_path: str, domain_name: str | None = None, keep_statics: bool = True) Domain
- Parses a domain file and returns a Domain object. - Parameters:
- domain_path (str) – The path to the domain file. 
- domain_name (str, optional) – The name of the domain. If not provided, it will be extracted from the file. Defaults to None. 
- keep_statics (bool, optional) – Whether to keep static predicates in the domain, computed by taking the union of action effects. Defaults to True. 
 
 
- parse_problem(domain_path: str, problem_path: str, keep_statics: bool = True) Problem
- Parses a problem file and returns a Problem object. - Parameters:
- domain_path (str) – The path to the domain file. 
- problem_path (str) – The path to the problem file. 
- keep_statics (bool, optional) – Whether to keep static predicates in the parsed domain. Defaults to True.