|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--LocationObjectPair
This class provides encapsulation for an object in the simulation and its location. The type of the object needs to be the root of the simulation hierarchy.
Constructor Summary | |
LocationObjectPair(Location loc,
Animal obj)
Copy constructor |
Method Summary | |
Location |
getLocation()
observer for location |
Animal |
getObject()
observer for object; need to change return type |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LocationObjectPair(Location loc, Animal obj)
Method Detail |
public Location getLocation()
public Animal getObject()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |