com.veriplace.client
Class PositionReference<T extends Position>

java.lang.Object
  extended by com.veriplace.client.PositionReference<T>

public class PositionReference<T extends Position>
extends java.lang.Object

Describes a geographic relationship to some Position.

Since:
2.7

Constructor Summary
PositionReference(T position, double distanceInMeters, double heading)
           
 
Method Summary
 double getDistanceInMeters()
          Returns the distance in meters to the position.
 double getHeading()
          Returns the straight-line heading to the position, in degrees clockwise from due north.
 T getPosition()
          Returns the Position (or subclass thereof) that this object refers to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PositionReference

public PositionReference(T position,
                         double distanceInMeters,
                         double heading)
Method Detail

getPosition

public T getPosition()
Returns the Position (or subclass thereof) that this object refers to.


getDistanceInMeters

public double getDistanceInMeters()
Returns the distance in meters to the position.


getHeading

public double getHeading()
Returns the straight-line heading to the position, in degrees clockwise from due north.