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

ai.libs.jaicore.search.algorithms.standard.astar.AStarFactory Maven / Gradle / Ivy

package ai.libs.jaicore.search.algorithms.standard.astar;

import ai.libs.jaicore.search.algorithms.standard.bestfirst.BestFirstFactory;
import ai.libs.jaicore.search.probleminputs.GraphSearchWithNumberBasedAdditivePathEvaluation;

public class AStarFactory extends BestFirstFactory, T, A, Double> {

	public AStarFactory() {
		super();
	}

	public AStarFactory(final int timeoutForFInMS) {
		super(timeoutForFInMS);
	}

	@Override
	public AStar getAlgorithm() {
		return this.getAlgorithm(this.getInput());
	}

	@Override
	public AStar getAlgorithm(final GraphSearchWithNumberBasedAdditivePathEvaluation input) {
		AStar search = new AStar<>(input);
		this.setupAlgorithm(search);
		return search;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy