agent
Class Percept

java.lang.Object
  extended by agent.Percept
Direct Known Subclasses:
PacPercept

public abstract class Percept
extends java.lang.Object

An abstract class for things an agent can perceive. Since an agent only receives one Percept per turn, the Percept may incorporate the results of multiple sensors. This class represents the set Per.


Constructor Summary
Percept(State s, Agent a)
          Construct a percept for a state from the point of view of a particular agent.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Percept

public Percept(State s,
               Agent a)
Construct a percept for a state from the point of view of a particular agent. Every subclass of Percept should override this default constructor. This design allows for greater modularity in the case that different agents have different kinds of percepts.