|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pacworld.VisibleAgent
public class VisibleAgent
The representation of an agent in an agent's percept. This includes the agent's id and current location.
Constructor Summary | |
---|---|
VisibleAgent(java.lang.String id,
int x,
int y)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Tests if this object is equivalent to another object by comparing the id's of the agents. |
java.lang.String |
getId()
Get the unique string id for the agent. |
int |
getX()
Get the X location of the agent. |
int |
getY()
Get the Y location of the agent. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VisibleAgent(java.lang.String id, int x, int y)
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getId()
public int getX()
public int getY()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |