com.garmin.fit
Class GpsMetadataMesg

java.lang.Object
  extended by com.garmin.fit.Mesg
      extended by com.garmin.fit.GpsMetadataMesg

public class GpsMetadataMesg
extends Mesg


Field Summary
static int EnhancedAltitudeFieldNum
           
static int EnhancedSpeedFieldNum
           
protected static Mesg gpsMetadataMesg
           
static int HeadingFieldNum
           
static int PositionLatFieldNum
           
static int PositionLongFieldNum
           
static int TimestampFieldNum
           
static int TimestampMsFieldNum
           
static int UtcTimestampFieldNum
           
static int VelocityFieldNum
           
 
Fields inherited from class com.garmin.fit.Mesg
developerFields, fields, localNum, name, num, systemTimeOffset
 
Constructor Summary
GpsMetadataMesg()
           
GpsMetadataMesg(Mesg mesg)
           
 
Method Summary
 java.lang.Float getEnhancedAltitude()
          Get enhanced_altitude field Units: m
 java.lang.Float getEnhancedSpeed()
          Get enhanced_speed field Units: m/s
 java.lang.Float getHeading()
          Get heading field Units: degrees
 int getNumVelocity()
           
 java.lang.Integer getPositionLat()
          Get position_lat field Units: semicircles
 java.lang.Integer getPositionLong()
          Get position_long field Units: semicircles
 DateTime getTimestamp()
          Get timestamp field Units: s Comment: Whole second part of the timestamp.
 java.lang.Integer getTimestampMs()
          Get timestamp_ms field Units: ms Comment: Millisecond part of the timestamp.
 DateTime getUtcTimestamp()
          Get utc_timestamp field Units: s Comment: Used to correlate UTC to system time if the timestamp of the message is in system time.
 java.lang.Float[] getVelocity()
           
 java.lang.Float getVelocity(int index)
          Get velocity field Units: m/s Comment: velocity[0] is lon velocity.
 void setEnhancedAltitude(java.lang.Float enhancedAltitude)
          Set enhanced_altitude field Units: m
 void setEnhancedSpeed(java.lang.Float enhancedSpeed)
          Set enhanced_speed field Units: m/s
 void setHeading(java.lang.Float heading)
          Set heading field Units: degrees
 void setPositionLat(java.lang.Integer positionLat)
          Set position_lat field Units: semicircles
 void setPositionLong(java.lang.Integer positionLong)
          Set position_long field Units: semicircles
 void setTimestamp(DateTime timestamp)
          Set timestamp field Units: s Comment: Whole second part of the timestamp.
 void setTimestampMs(java.lang.Integer timestampMs)
          Set timestamp_ms field Units: ms Comment: Millisecond part of the timestamp.
 void setUtcTimestamp(DateTime utcTimestamp)
          Set utc_timestamp field Units: s Comment: Used to correlate UTC to system time if the timestamp of the message is in system time.
 void setVelocity(int index, java.lang.Float velocity)
          Set velocity field Units: m/s Comment: velocity[0] is lon velocity.
 
Methods inherited from class com.garmin.fit.Mesg
addDeveloperField, addField, getActiveSubFieldIndex, getActiveSubFieldName, getDeveloperFields, getField, getField, getField, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValues, getFieldBigIntegerValues, getFieldBigIntegerValues, getFieldBitsValue, getFieldBitsValue, getFieldByteValue, getFieldByteValue, getFieldByteValue, getFieldByteValue, getFieldByteValue, getFieldByteValue, getFieldByteValues, getFieldByteValues, getFieldByteValues, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValues, getFieldDoubleValues, getFieldDoubleValues, getFieldFloatValue, getFieldFloatValue, getFieldFloatValue, getFieldFloatValue, getFieldFloatValue, getFieldFloatValue, getFieldFloatValues, getFieldFloatValues, getFieldFloatValues, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValues, getFieldIntegerValues, getFieldIntegerValues, getFieldLongValue, getFieldLongValue, getFieldLongValue, getFieldLongValue, getFieldLongValue, getFieldLongValue, getFieldLongValues, getFieldLongValues, getFieldLongValues, getFields, getFieldShortValue, getFieldShortValue, getFieldShortValue, getFieldShortValue, getFieldShortValue, getFieldShortValue, getFieldShortValues, getFieldShortValues, getFieldShortValues, getFieldStringValue, getFieldStringValue, getFieldStringValue, getFieldStringValue, getFieldStringValue, getFieldStringValue, getFieldStringValues, getFieldStringValues, getFieldStringValues, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getIsFieldAccumulated, getLocalNum, getName, getNum, getNumFields, getNumFieldValues, getNumFieldValues, getNumFieldValues, getNumFieldValues, getOverrideField, hasField, removeExpandedFields, removeField, setField, setFields, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setLocalNum, timestampToDateTime, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TimestampFieldNum

public static final int TimestampFieldNum
See Also:
Constant Field Values

TimestampMsFieldNum

public static final int TimestampMsFieldNum
See Also:
Constant Field Values

PositionLatFieldNum

public static final int PositionLatFieldNum
See Also:
Constant Field Values

PositionLongFieldNum

public static final int PositionLongFieldNum
See Also:
Constant Field Values

EnhancedAltitudeFieldNum

public static final int EnhancedAltitudeFieldNum
See Also:
Constant Field Values

EnhancedSpeedFieldNum

public static final int EnhancedSpeedFieldNum
See Also:
Constant Field Values

HeadingFieldNum

public static final int HeadingFieldNum
See Also:
Constant Field Values

UtcTimestampFieldNum

public static final int UtcTimestampFieldNum
See Also:
Constant Field Values

VelocityFieldNum

public static final int VelocityFieldNum
See Also:
Constant Field Values

gpsMetadataMesg

protected static final Mesg gpsMetadataMesg
Constructor Detail

GpsMetadataMesg

public GpsMetadataMesg()

GpsMetadataMesg

public GpsMetadataMesg(Mesg mesg)
Method Detail

getTimestamp

public DateTime getTimestamp()
Get timestamp field Units: s Comment: Whole second part of the timestamp.

Returns:
timestamp

setTimestamp

public void setTimestamp(DateTime timestamp)
Set timestamp field Units: s Comment: Whole second part of the timestamp.

Parameters:
timestamp -

getTimestampMs

public java.lang.Integer getTimestampMs()
Get timestamp_ms field Units: ms Comment: Millisecond part of the timestamp.

Returns:
timestamp_ms

setTimestampMs

public void setTimestampMs(java.lang.Integer timestampMs)
Set timestamp_ms field Units: ms Comment: Millisecond part of the timestamp.

Parameters:
timestampMs -

getPositionLat

public java.lang.Integer getPositionLat()
Get position_lat field Units: semicircles

Returns:
position_lat

setPositionLat

public void setPositionLat(java.lang.Integer positionLat)
Set position_lat field Units: semicircles

Parameters:
positionLat -

getPositionLong

public java.lang.Integer getPositionLong()
Get position_long field Units: semicircles

Returns:
position_long

setPositionLong

public void setPositionLong(java.lang.Integer positionLong)
Set position_long field Units: semicircles

Parameters:
positionLong -

getEnhancedAltitude

public java.lang.Float getEnhancedAltitude()
Get enhanced_altitude field Units: m

Returns:
enhanced_altitude

setEnhancedAltitude

public void setEnhancedAltitude(java.lang.Float enhancedAltitude)
Set enhanced_altitude field Units: m

Parameters:
enhancedAltitude -

getEnhancedSpeed

public java.lang.Float getEnhancedSpeed()
Get enhanced_speed field Units: m/s

Returns:
enhanced_speed

setEnhancedSpeed

public void setEnhancedSpeed(java.lang.Float enhancedSpeed)
Set enhanced_speed field Units: m/s

Parameters:
enhancedSpeed -

getHeading

public java.lang.Float getHeading()
Get heading field Units: degrees

Returns:
heading

setHeading

public void setHeading(java.lang.Float heading)
Set heading field Units: degrees

Parameters:
heading -

getUtcTimestamp

public DateTime getUtcTimestamp()
Get utc_timestamp field Units: s Comment: Used to correlate UTC to system time if the timestamp of the message is in system time. This UTC time is derived from the GPS data.

Returns:
utc_timestamp

setUtcTimestamp

public void setUtcTimestamp(DateTime utcTimestamp)
Set utc_timestamp field Units: s Comment: Used to correlate UTC to system time if the timestamp of the message is in system time. This UTC time is derived from the GPS data.

Parameters:
utcTimestamp -

getVelocity

public java.lang.Float[] getVelocity()

getNumVelocity

public int getNumVelocity()
Returns:
number of velocity

getVelocity

public java.lang.Float getVelocity(int index)
Get velocity field Units: m/s Comment: velocity[0] is lon velocity. Velocity[1] is lat velocity. Velocity[2] is altitude velocity.

Parameters:
index - of velocity
Returns:
velocity

setVelocity

public void setVelocity(int index,
                        java.lang.Float velocity)
Set velocity field Units: m/s Comment: velocity[0] is lon velocity. Velocity[1] is lat velocity. Velocity[2] is altitude velocity.

Parameters:
index - of velocity
velocity -