aima.basic
Class Environment

java.lang.Object
  extended by aima.basic.Environment
Direct Known Subclasses:
MapEnvironment, TrivialVaccumEnvironment, XYEnvironment

public abstract class Environment
extends java.lang.Object


Field Summary
protected  java.util.ArrayList<Agent> agents
           
protected  java.util.ArrayList<EnvironmentObject> objects
           
protected  java.util.ArrayList<BasicEnvironmentView> views
           
 
Constructor Summary
protected Environment()
           
 
Method Summary
 void addAgent(Agent a)
           
 void addAgent(Agent a, java.lang.String attributeName, java.lang.Object attributeValue)
           
 void addObject(EnvironmentObject o)
           
 void addObject(EnvironmentObject o, java.lang.String attributeName, java.lang.Object attributeValue)
           
 boolean alreadyContains(Agent anAgent)
           
 boolean alreadyContains(EnvironmentObject o)
           
 void createExogenousChange()
           
abstract  void executeAction(Agent a, java.lang.String act)
           
 java.util.ArrayList getAgents()
           
 java.util.List<ObjectWithDynamicAttributes> getAllObjects()
           
 java.util.ArrayList getObjects()
           
abstract  Percept getPerceptSeenBy(Agent anAgent)
           
 boolean isDone()
           
 void registerView(BasicEnvironmentView bev)
           
 void step()
           
 void step(int n)
           
 void stepUntilDone()
           
 void updateViews(java.lang.String command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objects

protected java.util.ArrayList<EnvironmentObject> objects

agents

protected java.util.ArrayList<Agent> agents

views

protected java.util.ArrayList<BasicEnvironmentView> views
Constructor Detail

Environment

protected Environment()
Method Detail

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()