All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.libs.jaicore.planning.hierarchical.algorithms.forwarddecomposition.SimpleForwardDecompositionReducer Maven / Gradle / Ivy

package ai.libs.jaicore.planning.hierarchical.algorithms.forwarddecomposition;

import ai.libs.jaicore.planning.core.Plan;
import ai.libs.jaicore.planning.hierarchical.algorithms.forwarddecomposition.graphgenerators.tfd.TFDNode;
import ai.libs.jaicore.planning.hierarchical.problems.htn.IHTNPlanningProblem;
import ai.libs.jaicore.search.model.other.SearchGraphPath;
import ai.libs.jaicore.search.probleminputs.GraphSearchInput;

public class SimpleForwardDecompositionReducer extends AForwardDecompositionReducer, SearchGraphPath> {

	@Override
	public GraphSearchInput encodeProblem(final IHTNPlanningProblem problem) {
		return this.getGraphSearchInput(problem);
	}

	@Override
	public Plan decodeSolution(final SearchGraphPath solution) {
		return this.getPlanForSolution(solution);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy