aima.core.search.framework.problem.StepCostFunction 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;
/**
* Artificial Intelligence A Modern Approach (3rd Edition): page 68.
*
* The step cost of taking action a in state s to reach state s' is
* denoted by c(s, a, s').
*
* @author Ravi Mohan
* @author Ciaran O'Reilly
*/
public interface StepCostFunction {
/**
* Calculate the step cost of taking action a in state s to reach state s'.
*
* @param s
* the state from which action a is to be performed.
* @param a
* the action to be taken.
*
* @param sDelta
* the state reached by taking the action.
* @return the cost of taking action a in state s to reach state s'.
*/
double c(Object s, Action a, Object sDelta);
}