net.agmodel.pPhysical
Class PLocation2D
java.lang.Object
net.agmodel.pPhysical.PLocation2D
- All Implemented Interfaces:
- Comparable, Serializable
- Direct Known Subclasses:
- PLocation
- public class PLocation2D
- extends Object
- implements Serializable, Comparable
Implements a persistent version of Location.
- Author:
- Matthew Laurenson
- See Also:
- Serialized Form
PLocation2D
public PLocation2D(double latitude,
double longitude)
throws IllegalArgumentException
PLocation2D
public PLocation2D(Location2D l)
throws IllegalArgumentException
toString
public String toString()
getLongitude
public double getLongitude()
getLatitude
public double getLatitude()
getLocation2D
public Location2D getLocation2D()
compareTo
public int compareTo(Object a)
- Specified by:
compareTo in interface Comparable
Copyright (C) NARC 2001 All Rights Reserved.