|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GridObject
Interface for an environment object that has a location on a 2-dimensional grid.
Method Summary | |
---|---|
DiscretePoint2D |
getLocation()
Gets the location of the object in the grid. |
void |
setLocation(DiscretePoint2D theLocation)
Sets the location of the object in the grid. |
Methods inherited from interface edu.columbia.cs.coms4701.agent.EnvironmentObject |
---|
addPropertyChangeListener, isAlive, removePropertyChangeListener, setAlive |
Method Detail |
---|
DiscretePoint2D getLocation()
void setLocation(DiscretePoint2D theLocation)
It's the environment's responsibility to ensure that newly assigned locations are within the bounds established by the environment.
theLocation
- a 2-dimensional point, assumed to be valid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |