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

aima.core.search.nondeterministic.ResultsFunction Maven / Gradle / Ivy

Go to download

AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.

There is a newer version: 3.0.0
Show newest version
package aima.core.search.nondeterministic;

import aima.core.agent.Action;
import java.util.Set;

/**
 * Artificial Intelligence A Modern Approach (3rd Edition): page 136.
*
* Closely related to ResultFunction, but for non-deterministic problems; in * these problems, the outcome of an action will be a set of results, not a * single result. This class implements the functionality of RESULTS(s, a), page * 136, returning the states resulting from doing action a in state s. * * @author Andrew Brown */ public interface ResultsFunction { /** * Returns the states that result from doing action a in state s * * @param s * a particular state. * @param a * an action to be performed in state s. * @return the states that result from doing action a in state s. */ Set results(Object s, Action a); }