
aima.core.environment.vacuum.NondeterministicVacuumAgent 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.
package aima.core.environment.vacuum;
import java.util.LinkedList;
import aima.core.agent.Action;
import aima.core.agent.Percept;
import aima.core.agent.impl.AbstractAgent;
import aima.core.agent.impl.NoOpAction;
import aima.core.search.framework.PerceptToStateFunction;
import aima.core.search.nondeterministic.AndOrSearch;
import aima.core.search.nondeterministic.IfStateThenPlan;
import aima.core.search.nondeterministic.NondeterministicProblem;
import aima.core.search.nondeterministic.Plan;
/**
* This agent traverses the NondeterministicVacuumEnvironment using a
* contingency plan. See page 135, AIMA3e.
*
* @author Andrew Brown
*/
public class NondeterministicVacuumAgent extends AbstractAgent {
private NondeterministicProblem problem;
private PerceptToStateFunction ptsFunction;
private Plan contingencyPlan;
private LinkedList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy