net.agmodel.pPhysical
Class PLocation2D

java.lang.Object
  extended bynet.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

Constructor Summary
PLocation2D(double latitude, double longitude)
           
PLocation2D(Location2D l)
           
 
Method Summary
 int compareTo(Object a)
           
 double getLatitude()
           
 Location2D getLocation2D()
           
 double getLongitude()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PLocation2D

public PLocation2D(double latitude,
                   double longitude)
            throws IllegalArgumentException

PLocation2D

public PLocation2D(Location2D l)
            throws IllegalArgumentException
Method Detail

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.