aima.gui.applications
Class VacuumAppDemo.VacuumModel
java.lang.Object
aima.basic.BasicEnvironmentView
aima.gui.framework.AgentAppModel
aima.gui.applications.VacuumAppDemo.VacuumModel
- Enclosing class:
- VacuumAppDemo
protected static class VacuumAppDemo.VacuumModel
- extends AgentAppModel
Provides access to the used environment, the names
of the locations (squares) maintained by the environment, and the
current state of all locations.
Field Summary |
static java.lang.String |
DIRTY
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIRTY
public static java.lang.String DIRTY
VacuumAppDemo.VacuumModel
protected VacuumAppDemo.VacuumModel()
setEnv
public void setEnv(TrivialVaccumEnvironment env)
getEnv
public TrivialVaccumEnvironment getEnv()
setAgent
public void setAgent(Agent agent)
getAgent
public Agent getAgent()
getLocations
public java.util.List<java.lang.String> getLocations()
- Returns the names of all locations used.
isDirty
public boolean isDirty(java.lang.String location)
- Checks whether the specified location is dirty.
hasAgent
public boolean hasAgent(java.lang.String location)
- Checks whether the agent is currently at the specified location.