aima.core.search.framework.problem.DefaultStepCostFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aima-core Show documentation
Show all versions of aima-core Show documentation
AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.
The newest version!
package aima.core.search.framework.problem;
import aima.core.agent.Action;
/**
* Returns one for every action.
*
* @author Ravi Mohan
*/
public class DefaultStepCostFunction implements StepCostFunction {
public double c(Object stateFrom, Action action, Object stateTo) {
return 1;
}
}