net.agmodel.pPhysical
Class PLocation

java.lang.Object
  extended bynet.agmodel.pPhysical.PLocation2D
      extended bynet.agmodel.pPhysical.PLocation
All Implemented Interfaces:
Comparable, Serializable
Direct Known Subclasses:
PPlace

public class PLocation
extends PLocation2D
implements Serializable, Comparable

Implements a persistent version of Location.

Author:
Matthew Laurenson
See Also:
Serialized Form

Constructor Summary
PLocation(double latitude, double longitude, double altitude)
           
PLocation(Location l)
           
 
Method Summary
 int compareTo(Object a)
           
 double getAltitude()
           
 Location getLocation()
           
 String toString()
           
 
Methods inherited from class net.agmodel.pPhysical.PLocation2D
getLatitude, getLocation2D, getLongitude
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PLocation

public PLocation(double latitude,
                 double longitude,
                 double altitude)
          throws IllegalArgumentException

PLocation

public PLocation(Location l)
          throws IllegalArgumentException
Method Detail

toString

public String toString()
Overrides:
toString in class PLocation2D

getAltitude

public double getAltitude()

getLocation

public Location getLocation()

compareTo

public int compareTo(Object a)
Specified by:
compareTo in interface Comparable
Overrides:
compareTo in class PLocation2D


Copyright (C) NARC 2001 All Rights Reserved.