|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.cs.coms4701.agent.environments.simple.SimpleEnvironmentObject
edu.columbia.cs.coms4701.agent.environments.grid.SimpleGridObject
public class SimpleGridObject
DESCRIPTION
Field Summary |
---|
Fields inherited from class edu.columbia.cs.coms4701.agent.environments.simple.SimpleEnvironmentObject |
---|
changeSupport |
Constructor Summary | |
---|---|
SimpleGridObject()
|
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 class edu.columbia.cs.coms4701.agent.environments.simple.SimpleEnvironmentObject |
---|
addPropertyChangeListener, isAlive, removePropertyChangeListener, setAlive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.columbia.cs.coms4701.agent.EnvironmentObject |
---|
addPropertyChangeListener, isAlive, removePropertyChangeListener, setAlive |
Constructor Detail |
---|
public SimpleGridObject()
Method Detail |
---|
public DiscretePoint2D getLocation()
getLocation
in interface GridObject
public void setLocation(DiscretePoint2D theLocation)
It's the environment's responsibility to ensure that newly assigned locations are within the bounds established by the environment.
setLocation
in interface GridObject
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 |