public class VisibleAgent
extends java.lang.Object
Constructor and Description |
---|
VisibleAgent(java.lang.String id,
int x,
int y) |
Modifier and Type | Method and Description |
---|---|
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() |
public java.lang.String getId()
public int getX()
public int getY()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object