/// <summary> /// Loads a PDDL problem from the given input file. Does not include an input data validation. /// </summary> /// <param name="domainContext">Context of the corresponding domain.</param> /// <param name="problemFilePath">PDDL problem input file.</param> /// <returns>PDDL problem input data.</returns> public static PDDL.Problem LoadProblem(PDDL.Domain domainContext, string problemFilePath) { PDDL.Problem problem = MasterExporter.ToProblem(domainContext, MasterParser.ParseAndCreateAst <ProblemAstNode>(problemFilePath, new MasterGrammarProblem())); problem.FilePath = problemFilePath; return(problem); }
/// <summary> /// Loads a PDDL domain from the given input file. Does not include an input data validation. /// </summary> /// <param name="domainFilePath">PDDL domain input file.</param> /// <returns>PDDL domain input data.</returns> public static PDDL.Domain LoadDomain(string domainFilePath) { PDDL.Domain domain = MasterExporter.ToDomain(MasterParser.ParseAndCreateAst <DomainAstNode>(domainFilePath, new MasterGrammarDomain())); domain.FilePath = domainFilePath; return(domain); }