aima.basic.vaccum
Class TrivialVaccumEnvironment

java.lang.Object
  extended by aima.basic.Environment
      extended by aima.basic.vaccum.TrivialVaccumEnvironment

public class TrivialVaccumEnvironment
extends Environment


Field Summary
 
Fields inherited from class aima.basic.Environment
agents, objects, views
 
Constructor Summary
TrivialVaccumEnvironment()
           
TrivialVaccumEnvironment(java.lang.String loc1Status, java.lang.String loc2Status)
           
 
Method Summary
 void addAgent(Agent a)
           
 void addAgent(Agent a, java.lang.String location)
           
 void executeAction(Agent a, java.lang.String agentAction)
           
 java.lang.String getAgentLocation(Agent a)
           
 int getAgentperformance(Agent a)
           
 java.lang.String getLocation1Status()
           
 java.lang.String getLocation2Status()
           
 java.lang.String getLocationStatus(java.lang.String location)
           
 Percept getPerceptSeenBy(Agent anAgent)
           
 java.util.Hashtable getStatus()
           
 
Methods inherited from class aima.basic.Environment
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

TrivialVaccumEnvironment

public TrivialVaccumEnvironment()

TrivialVaccumEnvironment

public TrivialVaccumEnvironment(java.lang.String loc1Status,
                                java.lang.String loc2Status)
Method Detail

executeAction

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

getPerceptSeenBy

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

addAgent

public void addAgent(Agent a)
Overrides:
addAgent in class Environment

addAgent

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

getLocation1Status

public java.lang.String getLocation1Status()

getLocation2Status

public java.lang.String getLocation2Status()

getLocationStatus

public java.lang.String getLocationStatus(java.lang.String location)

getStatus

public java.util.Hashtable getStatus()

getAgentLocation

public java.lang.String getAgentLocation(Agent a)

getAgentperformance

public int getAgentperformance(Agent a)