courselog.gpsutils
Class TrackPoint

java.lang.Object
  extended by courselog.gpsutils.GeoPoint
      extended by courselog.gpsutils.MeasuredPoint
          extended by courselog.gpsutils.TrackPoint
All Implemented Interfaces:
ewe.util.Copyable

public class TrackPoint
extends MeasuredPoint

A location point obtained from the log of a track. Carries additional fields that MeasuredPoint s does not have.


Field Summary
 double avgHeading
          Average heading (°).
 double avgSpeed
          Average speed (km/h).
 double downwardsHere
          Total downwards displacement (m).
 double durationHere
          Duration of the track at this point (s).
 double lengthHere
          Length of the track at this point (m).
 double upwardsHere
          Total upwards displacement (m).
 
Fields inherited from class courselog.gpsutils.MeasuredPoint
altGeoid, date, hDOP, heading, isDifferential, measureTime, satsInSolution, speed, time, vDOP
 
Fields inherited from class courselog.gpsutils.GeoPoint
altSeaLevel, dummyAng, dummyCoord, ER, lat, lon, myX, myY, myZ, uTMEasting, uTMLatZone, uTMLonZone, uTMNorthing
 
Constructor Summary
TrackPoint()
          Creates a new instance of TrackPoint
 
Method Summary
 void copyFrom(java.lang.Object param)
          Copy all elements of point param into this instance.
 int formatInBuffer(byte[] buff)
          Formats this track point in a buffer so that it can be written to the log.
 boolean readFromLogLine(java.lang.String logLine)
          Fill in attributes of this point from a string generated by the PositionTracer log function.
 
Methods inherited from class courselog.gpsutils.MeasuredPoint
computeTime, formatHeading, formatSpeed, getCopy, initialise, timeTo
 
Methods inherited from class courselog.gpsutils.GeoPoint
computeCartesian, computeLatLonAlt, computeLatLonToUTMRef, computeUTMtoLatLng, coordinatesIn, ddmmssLat, ddmmssLon, directionTo, distance, formatAlt, getLat, getLon, getUTMLatitudeZoneLetter, headingTo, moveBy, toLatLonString, toString, toUTMString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

avgSpeed

public double avgSpeed
Average speed (km/h).


avgHeading

public double avgHeading
Average heading (°).


lengthHere

public double lengthHere
Length of the track at this point (m).


durationHere

public double durationHere
Duration of the track at this point (s).


upwardsHere

public double upwardsHere
Total upwards displacement (m).


downwardsHere

public double downwardsHere
Total downwards displacement (m).

Constructor Detail

TrackPoint

public TrackPoint()
Creates a new instance of TrackPoint

Method Detail

formatInBuffer

public int formatInBuffer(byte[] buff)
Formats this track point in a buffer so that it can be written to the log. Values are formatted in order to be readable as csv values.

Overrides:
formatInBuffer in class GeoPoint
Parameters:
buff - buffer to write in.
Returns:
Length of the formatted values in the buffer.

readFromLogLine

public boolean readFromLogLine(java.lang.String logLine)
Fill in attributes of this point from a string generated by the PositionTracer log function.

Overrides:
readFromLogLine in class GeoPoint
Parameters:
logLine - Input string to interpret.
Returns:
true if the string looks correct, false otherwise.

copyFrom

public void copyFrom(java.lang.Object param)
Description copied from class: MeasuredPoint
Copy all elements of point param into this instance.

Overrides:
copyFrom in class MeasuredPoint
Parameters:
param - Point to copy from.