aima.core.environment.vacuum.VacuumWorldResults 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.environment.vacuum;
import java.util.LinkedHashSet;
import java.util.Set;
import aima.core.agent.Action;
import aima.core.agent.Agent;
import aima.core.search.nondeterministic.ResultsFunction;
/**
* Returns possible results
*
* @author Andrew Brown
*/
public class VacuumWorldResults implements ResultsFunction {
private Agent agent;
/**
* Constructor
*
* @param agent
*/
public VacuumWorldResults(Agent agent) {
this.agent = agent;
}
/**
* Returns a list of possible results for a given state and action
*
* @param state
* @param action
* @return a list of possible results for a given state and action.
*/
@Override
public Set