com.garmin.fit
Class LengthMesg

java.lang.Object
  extended by com.garmin.fit.Mesg
      extended by com.garmin.fit.LengthMesg
All Implemented Interfaces:
MesgWithEvent

public class LengthMesg
extends Mesg
implements MesgWithEvent


Field Summary
static int AvgSpeedFieldNum
           
static int AvgSwimmingCadenceFieldNum
           
static int EventFieldNum
           
static int EventGroupFieldNum
           
static int EventTypeFieldNum
           
protected static Mesg lengthMesg
           
static int LengthTypeFieldNum
           
static int MessageIndexFieldNum
           
static int OpponentScoreFieldNum
           
static int PlayerScoreFieldNum
           
static int StartTimeFieldNum
           
static int StrokeCountFieldNum
           
static int SwimStrokeFieldNum
           
static int TimestampFieldNum
           
static int TotalCaloriesFieldNum
           
static int TotalElapsedTimeFieldNum
           
static int TotalStrokesFieldNum
           
static int TotalTimerTimeFieldNum
           
static int ZoneCountFieldNum
           
 
Fields inherited from class com.garmin.fit.Mesg
developerFields, fields, localNum, name, num, systemTimeOffset
 
Constructor Summary
LengthMesg()
           
LengthMesg(Mesg mesg)
           
 
Method Summary
 java.lang.Float getAvgSpeed()
          Get avg_speed field Units: m/s
 java.lang.Short getAvgSwimmingCadence()
          Get avg_swimming_cadence field Units: strokes/min
 Event getEvent()
          Get event field
 java.lang.Short getEventGroup()
          Get event_group field
 EventType getEventType()
          Get event_type field
 LengthType getLengthType()
          Get length_type field
 java.lang.Integer getMessageIndex()
          Get message_index field
 int getNumStrokeCount()
           
 int getNumZoneCount()
           
 java.lang.Integer getOpponentScore()
          Get opponent_score field
 java.lang.Integer getPlayerScore()
          Get player_score field
 DateTime getStartTime()
          Get start_time field
 java.lang.Integer[] getStrokeCount()
           
 java.lang.Integer getStrokeCount(int index)
          Get stroke_count field Units: counts Comment: stroke_type enum used as the index
 SwimStroke getSwimStroke()
          Get swim_stroke field Units: swim_stroke
 DateTime getTimestamp()
          Get timestamp field
 java.lang.Integer getTotalCalories()
          Get total_calories field Units: kcal
 java.lang.Float getTotalElapsedTime()
          Get total_elapsed_time field Units: s
 java.lang.Integer getTotalStrokes()
          Get total_strokes field Units: strokes
 java.lang.Float getTotalTimerTime()
          Get total_timer_time field Units: s
 java.lang.Integer[] getZoneCount()
           
 java.lang.Integer getZoneCount(int index)
          Get zone_count field Units: counts Comment: zone number used as the index
 void setAvgSpeed(java.lang.Float avgSpeed)
          Set avg_speed field Units: m/s
 void setAvgSwimmingCadence(java.lang.Short avgSwimmingCadence)
          Set avg_swimming_cadence field Units: strokes/min
 void setEvent(Event event)
          Set event field
 void setEventGroup(java.lang.Short eventGroup)
          Set event_group field
 void setEventType(EventType eventType)
          Set event_type field
 void setLengthType(LengthType lengthType)
          Set length_type field
 void setMessageIndex(java.lang.Integer messageIndex)
          Set message_index field
 void setOpponentScore(java.lang.Integer opponentScore)
          Set opponent_score field
 void setPlayerScore(java.lang.Integer playerScore)
          Set player_score field
 void setStartTime(DateTime startTime)
          Set start_time field
 void setStrokeCount(int index, java.lang.Integer strokeCount)
          Set stroke_count field Units: counts Comment: stroke_type enum used as the index
 void setSwimStroke(SwimStroke swimStroke)
          Set swim_stroke field Units: swim_stroke
 void setTimestamp(DateTime timestamp)
          Set timestamp field
 void setTotalCalories(java.lang.Integer totalCalories)
          Set total_calories field Units: kcal
 void setTotalElapsedTime(java.lang.Float totalElapsedTime)
          Set total_elapsed_time field Units: s
 void setTotalStrokes(java.lang.Integer totalStrokes)
          Set total_strokes field Units: strokes
 void setTotalTimerTime(java.lang.Float totalTimerTime)
          Set total_timer_time field Units: s
 void setZoneCount(int index, java.lang.Integer zoneCount)
          Set zone_count field Units: counts Comment: zone number used as the index
 
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

MessageIndexFieldNum

public static final int MessageIndexFieldNum
See Also:
Constant Field Values

TimestampFieldNum

public static final int TimestampFieldNum
See Also:
Constant Field Values

EventFieldNum

public static final int EventFieldNum
See Also:
Constant Field Values

EventTypeFieldNum

public static final int EventTypeFieldNum
See Also:
Constant Field Values

StartTimeFieldNum

public static final int StartTimeFieldNum
See Also:
Constant Field Values

TotalElapsedTimeFieldNum

public static final int TotalElapsedTimeFieldNum
See Also:
Constant Field Values

TotalTimerTimeFieldNum

public static final int TotalTimerTimeFieldNum
See Also:
Constant Field Values

TotalStrokesFieldNum

public static final int TotalStrokesFieldNum
See Also:
Constant Field Values

AvgSpeedFieldNum

public static final int AvgSpeedFieldNum
See Also:
Constant Field Values

SwimStrokeFieldNum

public static final int SwimStrokeFieldNum
See Also:
Constant Field Values

AvgSwimmingCadenceFieldNum

public static final int AvgSwimmingCadenceFieldNum
See Also:
Constant Field Values

EventGroupFieldNum

public static final int EventGroupFieldNum
See Also:
Constant Field Values

TotalCaloriesFieldNum

public static final int TotalCaloriesFieldNum
See Also:
Constant Field Values

LengthTypeFieldNum

public static final int LengthTypeFieldNum
See Also:
Constant Field Values

PlayerScoreFieldNum

public static final int PlayerScoreFieldNum
See Also:
Constant Field Values

OpponentScoreFieldNum

public static final int OpponentScoreFieldNum
See Also:
Constant Field Values

StrokeCountFieldNum

public static final int StrokeCountFieldNum
See Also:
Constant Field Values

ZoneCountFieldNum

public static final int ZoneCountFieldNum
See Also:
Constant Field Values

lengthMesg

protected static final Mesg lengthMesg
Constructor Detail

LengthMesg

public LengthMesg()

LengthMesg

public LengthMesg(Mesg mesg)
Method Detail

getMessageIndex

public java.lang.Integer getMessageIndex()
Get message_index field

Returns:
message_index

setMessageIndex

public void setMessageIndex(java.lang.Integer messageIndex)
Set message_index field

Parameters:
messageIndex -

getTimestamp

public DateTime getTimestamp()
Get timestamp field

Specified by:
getTimestamp in interface MesgWithEvent
Returns:
timestamp

setTimestamp

public void setTimestamp(DateTime timestamp)
Set timestamp field

Specified by:
setTimestamp in interface MesgWithEvent
Parameters:
timestamp -

getEvent

public Event getEvent()
Get event field

Specified by:
getEvent in interface MesgWithEvent
Returns:
event

setEvent

public void setEvent(Event event)
Set event field

Specified by:
setEvent in interface MesgWithEvent
Parameters:
event -

getEventType

public EventType getEventType()
Get event_type field

Specified by:
getEventType in interface MesgWithEvent
Returns:
event_type

setEventType

public void setEventType(EventType eventType)
Set event_type field

Specified by:
setEventType in interface MesgWithEvent
Parameters:
eventType -

getStartTime

public DateTime getStartTime()
Get start_time field

Returns:
start_time

setStartTime

public void setStartTime(DateTime startTime)
Set start_time field

Parameters:
startTime -

getTotalElapsedTime

public java.lang.Float getTotalElapsedTime()
Get total_elapsed_time field Units: s

Returns:
total_elapsed_time

setTotalElapsedTime

public void setTotalElapsedTime(java.lang.Float totalElapsedTime)
Set total_elapsed_time field Units: s

Parameters:
totalElapsedTime -

getTotalTimerTime

public java.lang.Float getTotalTimerTime()
Get total_timer_time field Units: s

Returns:
total_timer_time

setTotalTimerTime

public void setTotalTimerTime(java.lang.Float totalTimerTime)
Set total_timer_time field Units: s

Parameters:
totalTimerTime -

getTotalStrokes

public java.lang.Integer getTotalStrokes()
Get total_strokes field Units: strokes

Returns:
total_strokes

setTotalStrokes

public void setTotalStrokes(java.lang.Integer totalStrokes)
Set total_strokes field Units: strokes

Parameters:
totalStrokes -

getAvgSpeed

public java.lang.Float getAvgSpeed()
Get avg_speed field Units: m/s

Returns:
avg_speed

setAvgSpeed

public void setAvgSpeed(java.lang.Float avgSpeed)
Set avg_speed field Units: m/s

Parameters:
avgSpeed -

getSwimStroke

public SwimStroke getSwimStroke()
Get swim_stroke field Units: swim_stroke

Returns:
swim_stroke

setSwimStroke

public void setSwimStroke(SwimStroke swimStroke)
Set swim_stroke field Units: swim_stroke

Parameters:
swimStroke -

getAvgSwimmingCadence

public java.lang.Short getAvgSwimmingCadence()
Get avg_swimming_cadence field Units: strokes/min

Returns:
avg_swimming_cadence

setAvgSwimmingCadence

public void setAvgSwimmingCadence(java.lang.Short avgSwimmingCadence)
Set avg_swimming_cadence field Units: strokes/min

Parameters:
avgSwimmingCadence -

getEventGroup

public java.lang.Short getEventGroup()
Get event_group field

Specified by:
getEventGroup in interface MesgWithEvent
Returns:
event_group

setEventGroup

public void setEventGroup(java.lang.Short eventGroup)
Set event_group field

Specified by:
setEventGroup in interface MesgWithEvent
Parameters:
eventGroup -

getTotalCalories

public java.lang.Integer getTotalCalories()
Get total_calories field Units: kcal

Returns:
total_calories

setTotalCalories

public void setTotalCalories(java.lang.Integer totalCalories)
Set total_calories field Units: kcal

Parameters:
totalCalories -

getLengthType

public LengthType getLengthType()
Get length_type field

Returns:
length_type

setLengthType

public void setLengthType(LengthType lengthType)
Set length_type field

Parameters:
lengthType -

getPlayerScore

public java.lang.Integer getPlayerScore()
Get player_score field

Returns:
player_score

setPlayerScore

public void setPlayerScore(java.lang.Integer playerScore)
Set player_score field

Parameters:
playerScore -

getOpponentScore

public java.lang.Integer getOpponentScore()
Get opponent_score field

Returns:
opponent_score

setOpponentScore

public void setOpponentScore(java.lang.Integer opponentScore)
Set opponent_score field

Parameters:
opponentScore -

getStrokeCount

public java.lang.Integer[] getStrokeCount()

getNumStrokeCount

public int getNumStrokeCount()
Returns:
number of stroke_count

getStrokeCount

public java.lang.Integer getStrokeCount(int index)
Get stroke_count field Units: counts Comment: stroke_type enum used as the index

Parameters:
index - of stroke_count
Returns:
stroke_count

setStrokeCount

public void setStrokeCount(int index,
                           java.lang.Integer strokeCount)
Set stroke_count field Units: counts Comment: stroke_type enum used as the index

Parameters:
index - of stroke_count
strokeCount -

getZoneCount

public java.lang.Integer[] getZoneCount()

getNumZoneCount

public int getNumZoneCount()
Returns:
number of zone_count

getZoneCount

public java.lang.Integer getZoneCount(int index)
Get zone_count field Units: counts Comment: zone number used as the index

Parameters:
index - of zone_count
Returns:
zone_count

setZoneCount

public void setZoneCount(int index,
                         java.lang.Integer zoneCount)
Set zone_count field Units: counts Comment: zone number used as the index

Parameters:
index - of zone_count
zoneCount -