com.garmin.fit
Class BarometerDataMesg

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

public class BarometerDataMesg
extends Mesg


Field Summary
protected static Mesg barometerDataMesg
           
static int BaroPresFieldNum
           
static int SampleTimeOffsetFieldNum
           
static int TimestampFieldNum
           
static int TimestampMsFieldNum
           
 
Fields inherited from class com.garmin.fit.Mesg
developerFields, fields, localNum, name, num, systemTimeOffset
 
Constructor Summary
BarometerDataMesg()
           
BarometerDataMesg(Mesg mesg)
           
 
Method Summary
 java.lang.Long[] getBaroPres()
           
 java.lang.Long getBaroPres(int index)
          Get baro_pres field Units: Pa Comment: These are the raw ADC reading.
 int getNumBaroPres()
           
 int getNumSampleTimeOffset()
           
 java.lang.Integer[] getSampleTimeOffset()
           
 java.lang.Integer getSampleTimeOffset(int index)
          Get sample_time_offset field Units: ms Comment: Each time in the array describes the time at which the barometer sample with the corrosponding index was taken.
 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.
 void setBaroPres(int index, java.lang.Long baroPres)
          Set baro_pres field Units: Pa Comment: These are the raw ADC reading.
 void setSampleTimeOffset(int index, java.lang.Integer sampleTimeOffset)
          Set sample_time_offset field Units: ms Comment: Each time in the array describes the time at which the barometer sample with the corrosponding index was taken.
 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.
 
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

SampleTimeOffsetFieldNum

public static final int SampleTimeOffsetFieldNum
See Also:
Constant Field Values

BaroPresFieldNum

public static final int BaroPresFieldNum
See Also:
Constant Field Values

barometerDataMesg

protected static final Mesg barometerDataMesg
Constructor Detail

BarometerDataMesg

public BarometerDataMesg()

BarometerDataMesg

public BarometerDataMesg(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 -

getSampleTimeOffset

public java.lang.Integer[] getSampleTimeOffset()

getNumSampleTimeOffset

public int getNumSampleTimeOffset()
Returns:
number of sample_time_offset

getSampleTimeOffset

public java.lang.Integer getSampleTimeOffset(int index)
Get sample_time_offset field Units: ms Comment: Each time in the array describes the time at which the barometer sample with the corrosponding index was taken. The samples may span across seconds. Array size must match the number of samples in baro_cal

Parameters:
index - of sample_time_offset
Returns:
sample_time_offset

setSampleTimeOffset

public void setSampleTimeOffset(int index,
                                java.lang.Integer sampleTimeOffset)
Set sample_time_offset field Units: ms Comment: Each time in the array describes the time at which the barometer sample with the corrosponding index was taken. The samples may span across seconds. Array size must match the number of samples in baro_cal

Parameters:
index - of sample_time_offset
sampleTimeOffset -

getBaroPres

public java.lang.Long[] getBaroPres()

getNumBaroPres

public int getNumBaroPres()
Returns:
number of baro_pres

getBaroPres

public java.lang.Long getBaroPres(int index)
Get baro_pres field Units: Pa Comment: These are the raw ADC reading. The samples may span across seconds. A conversion will need to be done on this data once read.

Parameters:
index - of baro_pres
Returns:
baro_pres

setBaroPres

public void setBaroPres(int index,
                        java.lang.Long baroPres)
Set baro_pres field Units: Pa Comment: These are the raw ADC reading. The samples may span across seconds. A conversion will need to be done on this data once read.

Parameters:
index - of baro_pres
baroPres -