aima.search.map
Class MapEnvironment

java.lang.Object
  extended by aima.basic.Environment
      extended by aima.search.map.MapEnvironment

public class MapEnvironment
extends Environment


Field Summary
 
Fields inherited from class aima.basic.Environment
agents, objects, views
 
Constructor Summary
MapEnvironment(Map aMap)
           
 
Method Summary
 void addAgent(Agent a, java.lang.String startLocation)
           
 void executeAction(Agent a, java.lang.String act)
           
 Map getMap()
           
 Percept getPerceptSeenBy(Agent anAgent)
           
 
Methods inherited from class aima.basic.Environment
addAgent, addAgent, addObject, addObject, alreadyContains, alreadyContains, createExogenousChange, getAgents, getAllObjects, getObjects, isDone, registerView, step, step, stepUntilDone, updateViews
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapEnvironment

public MapEnvironment(Map aMap)
Method Detail

addAgent

public void addAgent(Agent a,
                     java.lang.String startLocation)

executeAction

public void executeAction(Agent a,
                          java.lang.String act)
Specified by:
executeAction in class Environment

getPerceptSeenBy

public Percept getPerceptSeenBy(Agent anAgent)
Specified by:
getPerceptSeenBy in class Environment

getMap

public Map getMap()