com.garmin.fit
Class ActivityMesg

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

public class ActivityMesg
extends Mesg
implements MesgWithEvent


Field Summary
protected static Mesg activityMesg
           
static int EventFieldNum
           
static int EventGroupFieldNum
           
static int EventTypeFieldNum
           
static int LocalTimestampFieldNum
           
static int NumSessionsFieldNum
           
static int TimestampFieldNum
           
static int TotalTimerTimeFieldNum
           
static int TypeFieldNum
           
 
Fields inherited from class com.garmin.fit.Mesg
developerFields, fields, localNum, name, num, systemTimeOffset
 
Constructor Summary
ActivityMesg()
           
ActivityMesg(Mesg mesg)
           
 
Method Summary
 Event getEvent()
          Get event field
 java.lang.Short getEventGroup()
          Get event_group field
 EventType getEventType()
          Get event_type field
 java.lang.Long getLocalTimestamp()
          Get local_timestamp field Comment: timestamp epoch expressed in local time, used to convert activity timestamps to local time
 java.lang.Integer getNumSessions()
          Get num_sessions field
 DateTime getTimestamp()
          Get timestamp field
 java.lang.Float getTotalTimerTime()
          Get total_timer_time field Units: s Comment: Exclude pauses
 Activity getType()
          Get type field
 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 setLocalTimestamp(java.lang.Long localTimestamp)
          Set local_timestamp field Comment: timestamp epoch expressed in local time, used to convert activity timestamps to local time
 void setNumSessions(java.lang.Integer numSessions)
          Set num_sessions field
 void setTimestamp(DateTime timestamp)
          Set timestamp field
 void setTotalTimerTime(java.lang.Float totalTimerTime)
          Set total_timer_time field Units: s Comment: Exclude pauses
 void setType(Activity type)
          Set type field
 
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

TotalTimerTimeFieldNum

public static final int TotalTimerTimeFieldNum
See Also:
Constant Field Values

NumSessionsFieldNum

public static final int NumSessionsFieldNum
See Also:
Constant Field Values

TypeFieldNum

public static final int TypeFieldNum
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

LocalTimestampFieldNum

public static final int LocalTimestampFieldNum
See Also:
Constant Field Values

EventGroupFieldNum

public static final int EventGroupFieldNum
See Also:
Constant Field Values

activityMesg

protected static final Mesg activityMesg
Constructor Detail

ActivityMesg

public ActivityMesg()

ActivityMesg

public ActivityMesg(Mesg mesg)
Method Detail

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 -

getTotalTimerTime

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

Returns:
total_timer_time

setTotalTimerTime

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

Parameters:
totalTimerTime -

getNumSessions

public java.lang.Integer getNumSessions()
Get num_sessions field

Returns:
num_sessions

setNumSessions

public void setNumSessions(java.lang.Integer numSessions)
Set num_sessions field

Parameters:
numSessions -

getType

public Activity getType()
Get type field

Returns:
type

setType

public void setType(Activity type)
Set type field

Parameters:
type -

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 -

getLocalTimestamp

public java.lang.Long getLocalTimestamp()
Get local_timestamp field Comment: timestamp epoch expressed in local time, used to convert activity timestamps to local time

Returns:
local_timestamp

setLocalTimestamp

public void setLocalTimestamp(java.lang.Long localTimestamp)
Set local_timestamp field Comment: timestamp epoch expressed in local time, used to convert activity timestamps to local time

Parameters:
localTimestamp -

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 -