jaron.gps
Class Trackpath

java.lang.Object
  extended by jaron.gps.Trackpath

public class Trackpath
extends java.lang.Object

The Trackpath class represents a GPS track that consist of an unlimited number of track points.

Since:
1.1
Version:
1.2
Author:
jarontec gmail com

Constructor Summary
Trackpath()
           
 
Method Summary
 void addTrackpoint(Trackpoint trackpoint)
          Adds a trackpoint to the track path.
 double getDistance()
          Returns the overall distance of the track.
 java.lang.String getDuration()
          Returns the overall track duration.
 java.lang.String getName()
          Returns the track name.
 int getSatMax()
          Returns the maximum count of satellites that where reachable during the track.
 int getSatMin()
          Returns the minimal count of satellites that where reachable during the track.
 java.util.ArrayList<Trackpoint> getTrackpoints()
          Returns a list of all the track points of the track.
 double getVAverage()
          Returns the average speed that was achieved during the track.
 double getVMax()
          Returns the maximum speed that was achieved during the track.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trackpath

public Trackpath()
Method Detail

addTrackpoint

public void addTrackpoint(Trackpoint trackpoint)
Adds a trackpoint to the track path.

Parameters:
trackpoint - the track point to be added

getDuration

public java.lang.String getDuration()
Returns the overall track duration.

Returns:
duration of the track

getDistance

public double getDistance()
Returns the overall distance of the track.

Returns:
track distance

getVMax

public double getVMax()
Returns the maximum speed that was achieved during the track.

Returns:
maximum track speed

getVAverage

public double getVAverage()
Returns the average speed that was achieved during the track.

Returns:
average track speed

getSatMin

public int getSatMin()
Returns the minimal count of satellites that where reachable during the track.

Returns:
minimal reachable satellites

getSatMax

public int getSatMax()
Returns the maximum count of satellites that where reachable during the track.

Returns:
maximum reachable satellites

getName

public java.lang.String getName()
Returns the track name.

Returns:
track name

getTrackpoints

public java.util.ArrayList<Trackpoint> getTrackpoints()
Returns a list of all the track points of the track.

Returns:
track list containing all the track points.