Class LocationObjectPair

java.lang.Object
  |
  +--LocationObjectPair

public class LocationObjectPair
extends java.lang.Object

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

LocationObjectPair

public LocationObjectPair(Location loc,
                          Animal obj)
Copy constructor
Method Detail

getLocation

public Location getLocation()
observer for location
Returns:
location element of pair

getObject

public Animal getObject()
observer for object; need to change return type
Returns:
object element of pair