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

aima.core.search.framework.problem.DefaultGoalTest Maven / Gradle / Ivy

package aima.core.search.framework.problem;

/**
 * Checks whether a given state equals an explicitly specified goal state.
 * 
 * @author Ruediger Lunde
 */
public class DefaultGoalTest implements GoalTest {
	private Object goalState;

	public DefaultGoalTest(Object goalState) {
		this.goalState = goalState;
	}

	public boolean isGoalState(Object state) {
		return goalState.equals(state);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy