com.tractrac.clientmodule.data
Class Position

java.lang.Object
  extended by com.tractrac.clientmodule.details.Attachments
      extended by com.tractrac.clientmodule.data.TimeObject
          extended by com.tractrac.clientmodule.data.Position
All Implemented Interfaces:
java.lang.Comparable<TimeObject>
Direct Known Subclasses:
CompetitorPositionRawData, CompetitorPositionSnappedData, ControlPointPositionData

public class Position
extends TimeObject

Represents data for a GPS position

Version:
2.0
Author:
TracTrac

Method Summary
 boolean equals(java.lang.Object obj)
           
 double getDirection()
          The direction, in degrees (in the interval 0 to 360)
 double getHeight()
          The height of the position, in meters
 double getLatitude()
          The latitude of the position, in degrees (in the interval -90 to 90, where north is the positive direction)
 double getLongitude()
          The longitude of the position, in degrees (in the interval -180 to 180, where east is the positive direction)
 double getSpeed()
          Speed, in kilometers per hour
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class com.tractrac.clientmodule.data.TimeObject
compareTo, getTimestamp
 
Methods inherited from class com.tractrac.clientmodule.details.Attachments
getAttachment, setAttachment
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getLongitude

public double getLongitude()
The longitude of the position, in degrees (in the interval -180 to 180, where east is the positive direction)

Returns:
longitude of the position, in degrees

getLatitude

public double getLatitude()
The latitude of the position, in degrees (in the interval -90 to 90, where north is the positive direction)

Returns:
latitude of the position, in degrees

getHeight

public double getHeight()
The height of the position, in meters

Returns:
height of the position, in meters

getSpeed

public double getSpeed()
Speed, in kilometers per hour

Returns:
speed, in kilometers per hour

getDirection

public double getDirection()
The direction, in degrees (in the interval 0 to 360)

Returns:
direction, in degrees

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class TimeObject

hashCode

public int hashCode()
Overrides:
hashCode in class TimeObject

toString

public java.lang.String toString()
Overrides:
toString in class TimeObject