aima.core.environment.vacuum.VacuumWorldResults Maven / Gradle / Ivy
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