|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentState
The AgentState interface is just a tagging interface used for whatever class an agent program uses to represent state.
It is important to remember that AgentState exists only within the agent's "mind" -- it is not a feature of the environment, though hopefully it bears pretty close resemblance to some aspect of the environment.
The only operations a AgentState must support are isEquals() (with a corresponding hashCode implementation), so that two states may be recognized as identical.
But for any given problem, you'll probably want to develop an AgentState class that supports particular properties -- e.g., in an 8-puzzle, the location of each tile, or in a robot world, the location of the robot and the (knowable) status of each square.
AgentState implementations should preferably be immutable; that is, they should be created through constructors, and thereafter accessed but not modified.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |