aima.basic
Class Environment
java.lang.Object
aima.basic.Environment
- Direct Known Subclasses:
- MapEnvironment, TrivialVaccumEnvironment, XYEnvironment
public abstract class Environment
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
objects
protected java.util.ArrayList<EnvironmentObject> objects
agents
protected java.util.ArrayList<Agent> agents
views
protected java.util.ArrayList<BasicEnvironmentView> views
Environment
protected Environment()
executeAction
public abstract void executeAction(Agent a,
java.lang.String act)
getPerceptSeenBy
public abstract Percept getPerceptSeenBy(Agent anAgent)
registerView
public void registerView(BasicEnvironmentView bev)
updateViews
public void updateViews(java.lang.String command)
isDone
public boolean isDone()
createExogenousChange
public void createExogenousChange()
step
public void step()
step
public void step(int n)
stepUntilDone
public void stepUntilDone()
getAgents
public java.util.ArrayList getAgents()
getObjects
public java.util.ArrayList getObjects()
alreadyContains
public boolean alreadyContains(EnvironmentObject o)
alreadyContains
public boolean alreadyContains(Agent anAgent)
addAgent
public void addAgent(Agent a,
java.lang.String attributeName,
java.lang.Object attributeValue)
addObject
public void addObject(EnvironmentObject o,
java.lang.String attributeName,
java.lang.Object attributeValue)
addObject
public void addObject(EnvironmentObject o)
addAgent
public void addAgent(Agent a)
getAllObjects
public java.util.List<ObjectWithDynamicAttributes> getAllObjects()