com.garmin.fit
Class EventMesg

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

public class EventMesg
extends Mesg
implements MesgWithEvent


Field Summary
static int Data16FieldNum
           
static int DataFieldNum
           
static int DeviceIndexFieldNum
           
static int EventFieldNum
           
static int EventGroupFieldNum
           
protected static Mesg eventMesg
           
static int EventTypeFieldNum
           
static int FrontGearFieldNum
           
static int FrontGearNumFieldNum
           
static int OpponentScoreFieldNum
           
static int RearGearFieldNum
           
static int RearGearNumFieldNum
           
static int ScoreFieldNum
           
static int TimestampFieldNum
           
 
Fields inherited from class com.garmin.fit.Mesg
developerFields, fields, localNum, name, num, systemTimeOffset
 
Constructor Summary
EventMesg()
           
EventMesg(Mesg mesg)
           
 
Method Summary
 java.lang.Float getBatteryLevel()
          Get battery_level field Units: V
 java.lang.Integer getCadHighAlert()
          Get cad_high_alert field Units: rpm
 java.lang.Integer getCadLowAlert()
          Get cad_low_alert field Units: rpm
 java.lang.Long getCalorieDurationAlert()
          Get calorie_duration_alert field Units: calories
 java.lang.Integer getCommTimeout()
          Get comm_timeout field
 java.lang.Integer getCoursePointIndex()
          Get course_point_index field
 java.lang.Long getData()
          Get data field
 java.lang.Integer getData16()
          Get data16 field
 java.lang.Short getDeviceIndex()
          Get device_index field
 java.lang.Float getDistanceDurationAlert()
          Get distance_duration_alert field Units: m
 Event getEvent()
          Get event field
 java.lang.Short getEventGroup()
          Get event_group field
 EventType getEventType()
          Get event_type field
 FitnessEquipmentState getFitnessEquipmentState()
          Get fitness_equipment_state field
 java.lang.Short getFrontGear()
          Get front_gear field Comment: Do not populate directly.
 java.lang.Short getFrontGearNum()
          Get front_gear_num field Comment: Do not populate directly.
 java.lang.Long getGearChangeData()
          Get gear_change_data field
 java.lang.Short getHrHighAlert()
          Get hr_high_alert field Units: bpm
 java.lang.Short getHrLowAlert()
          Get hr_low_alert field Units: bpm
 java.lang.Integer getOpponentScore()
          Get opponent_score field Comment: Do not populate directly.
 java.lang.Integer getPowerHighAlert()
          Get power_high_alert field Units: watts
 java.lang.Integer getPowerLowAlert()
          Get power_low_alert field Units: watts
 java.lang.Short getRearGear()
          Get rear_gear field Comment: Do not populate directly.
 java.lang.Short getRearGearNum()
          Get rear_gear_num field Comment: Do not populate directly.
 RiderPositionType getRiderPosition()
          Get rider_position field Comment: Indicates the rider position value.
 java.lang.Integer getScore()
          Get score field Comment: Do not populate directly.
 java.lang.Float getSpeedHighAlert()
          Get speed_high_alert field Units: m/s
 java.lang.Float getSpeedLowAlert()
          Get speed_low_alert field Units: m/s
 java.lang.Long getSportPoint()
          Get sport_point field
 java.lang.Float getTimeDurationAlert()
          Get time_duration_alert field Units: s
 TimerTrigger getTimerTrigger()
          Get timer_trigger field
 DateTime getTimestamp()
          Get timestamp field Units: s
 java.lang.Float getVirtualPartnerSpeed()
          Get virtual_partner_speed field Units: m/s
 void setBatteryLevel(java.lang.Float batteryLevel)
          Set battery_level field Units: V
 void setCadHighAlert(java.lang.Integer cadHighAlert)
          Set cad_high_alert field Units: rpm
 void setCadLowAlert(java.lang.Integer cadLowAlert)
          Set cad_low_alert field Units: rpm
 void setCalorieDurationAlert(java.lang.Long calorieDurationAlert)
          Set calorie_duration_alert field Units: calories
 void setCommTimeout(java.lang.Integer commTimeout)
          Set comm_timeout field
 void setCoursePointIndex(java.lang.Integer coursePointIndex)
          Set course_point_index field
 void setData(java.lang.Long data)
          Set data field
 void setData16(java.lang.Integer data16)
          Set data16 field
 void setDeviceIndex(java.lang.Short deviceIndex)
          Set device_index field
 void setDistanceDurationAlert(java.lang.Float distanceDurationAlert)
          Set distance_duration_alert field Units: m
 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 setFitnessEquipmentState(FitnessEquipmentState fitnessEquipmentState)
          Set fitness_equipment_state field
 void setFrontGear(java.lang.Short frontGear)
          Set front_gear field Comment: Do not populate directly.
 void setFrontGearNum(java.lang.Short frontGearNum)
          Set front_gear_num field Comment: Do not populate directly.
 void setGearChangeData(java.lang.Long gearChangeData)
          Set gear_change_data field
 void setHrHighAlert(java.lang.Short hrHighAlert)
          Set hr_high_alert field Units: bpm
 void setHrLowAlert(java.lang.Short hrLowAlert)
          Set hr_low_alert field Units: bpm
 void setOpponentScore(java.lang.Integer opponentScore)
          Set opponent_score field Comment: Do not populate directly.
 void setPowerHighAlert(java.lang.Integer powerHighAlert)
          Set power_high_alert field Units: watts
 void setPowerLowAlert(java.lang.Integer powerLowAlert)
          Set power_low_alert field Units: watts
 void setRearGear(java.lang.Short rearGear)
          Set rear_gear field Comment: Do not populate directly.
 void setRearGearNum(java.lang.Short rearGearNum)
          Set rear_gear_num field Comment: Do not populate directly.
 void setRiderPosition(RiderPositionType riderPosition)
          Set rider_position field Comment: Indicates the rider position value.
 void setScore(java.lang.Integer score)
          Set score field Comment: Do not populate directly.
 void setSpeedHighAlert(java.lang.Float speedHighAlert)
          Set speed_high_alert field Units: m/s
 void setSpeedLowAlert(java.lang.Float speedLowAlert)
          Set speed_low_alert field Units: m/s
 void setSportPoint(java.lang.Long sportPoint)
          Set sport_point field
 void setTimeDurationAlert(java.lang.Float timeDurationAlert)
          Set time_duration_alert field Units: s
 void setTimerTrigger(TimerTrigger timerTrigger)
          Set timer_trigger field
 void setTimestamp(DateTime timestamp)
          Set timestamp field Units: s
 void setVirtualPartnerSpeed(java.lang.Float virtualPartnerSpeed)
          Set virtual_partner_speed field Units: m/s
 
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

EventFieldNum

public static final int EventFieldNum
See Also:
Constant Field Values

EventTypeFieldNum

public static final int EventTypeFieldNum
See Also:
Constant Field Values

Data16FieldNum

public static final int Data16FieldNum
See Also:
Constant Field Values

DataFieldNum

public static final int DataFieldNum
See Also:
Constant Field Values

EventGroupFieldNum

public static final int EventGroupFieldNum
See Also:
Constant Field Values

ScoreFieldNum

public static final int ScoreFieldNum
See Also:
Constant Field Values

OpponentScoreFieldNum

public static final int OpponentScoreFieldNum
See Also:
Constant Field Values

FrontGearNumFieldNum

public static final int FrontGearNumFieldNum
See Also:
Constant Field Values

FrontGearFieldNum

public static final int FrontGearFieldNum
See Also:
Constant Field Values

RearGearNumFieldNum

public static final int RearGearNumFieldNum
See Also:
Constant Field Values

RearGearFieldNum

public static final int RearGearFieldNum
See Also:
Constant Field Values

DeviceIndexFieldNum

public static final int DeviceIndexFieldNum
See Also:
Constant Field Values

eventMesg

protected static final Mesg eventMesg
Constructor Detail

EventMesg

public EventMesg()

EventMesg

public EventMesg(Mesg mesg)
Method Detail

getTimestamp

public DateTime getTimestamp()
Get timestamp field Units: s

Specified by:
getTimestamp in interface MesgWithEvent
Returns:
timestamp

setTimestamp

public void setTimestamp(DateTime timestamp)
Set timestamp field Units: s

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 -

getData16

public java.lang.Integer getData16()
Get data16 field

Returns:
data16

setData16

public void setData16(java.lang.Integer data16)
Set data16 field

Parameters:
data16 -

getData

public java.lang.Long getData()
Get data field

Returns:
data

setData

public void setData(java.lang.Long data)
Set data field

Parameters:
data -

getTimerTrigger

public TimerTrigger getTimerTrigger()
Get timer_trigger field

Returns:
timer_trigger

setTimerTrigger

public void setTimerTrigger(TimerTrigger timerTrigger)
Set timer_trigger field

Parameters:
timerTrigger -

getCoursePointIndex

public java.lang.Integer getCoursePointIndex()
Get course_point_index field

Returns:
course_point_index

setCoursePointIndex

public void setCoursePointIndex(java.lang.Integer coursePointIndex)
Set course_point_index field

Parameters:
coursePointIndex -

getBatteryLevel

public java.lang.Float getBatteryLevel()
Get battery_level field Units: V

Returns:
battery_level

setBatteryLevel

public void setBatteryLevel(java.lang.Float batteryLevel)
Set battery_level field Units: V

Parameters:
batteryLevel -

getVirtualPartnerSpeed

public java.lang.Float getVirtualPartnerSpeed()
Get virtual_partner_speed field Units: m/s

Returns:
virtual_partner_speed

setVirtualPartnerSpeed

public void setVirtualPartnerSpeed(java.lang.Float virtualPartnerSpeed)
Set virtual_partner_speed field Units: m/s

Parameters:
virtualPartnerSpeed -

getHrHighAlert

public java.lang.Short getHrHighAlert()
Get hr_high_alert field Units: bpm

Returns:
hr_high_alert

setHrHighAlert

public void setHrHighAlert(java.lang.Short hrHighAlert)
Set hr_high_alert field Units: bpm

Parameters:
hrHighAlert -

getHrLowAlert

public java.lang.Short getHrLowAlert()
Get hr_low_alert field Units: bpm

Returns:
hr_low_alert

setHrLowAlert

public void setHrLowAlert(java.lang.Short hrLowAlert)
Set hr_low_alert field Units: bpm

Parameters:
hrLowAlert -

getSpeedHighAlert

public java.lang.Float getSpeedHighAlert()
Get speed_high_alert field Units: m/s

Returns:
speed_high_alert

setSpeedHighAlert

public void setSpeedHighAlert(java.lang.Float speedHighAlert)
Set speed_high_alert field Units: m/s

Parameters:
speedHighAlert -

getSpeedLowAlert

public java.lang.Float getSpeedLowAlert()
Get speed_low_alert field Units: m/s

Returns:
speed_low_alert

setSpeedLowAlert

public void setSpeedLowAlert(java.lang.Float speedLowAlert)
Set speed_low_alert field Units: m/s

Parameters:
speedLowAlert -

getCadHighAlert

public java.lang.Integer getCadHighAlert()
Get cad_high_alert field Units: rpm

Returns:
cad_high_alert

setCadHighAlert

public void setCadHighAlert(java.lang.Integer cadHighAlert)
Set cad_high_alert field Units: rpm

Parameters:
cadHighAlert -

getCadLowAlert

public java.lang.Integer getCadLowAlert()
Get cad_low_alert field Units: rpm

Returns:
cad_low_alert

setCadLowAlert

public void setCadLowAlert(java.lang.Integer cadLowAlert)
Set cad_low_alert field Units: rpm

Parameters:
cadLowAlert -

getPowerHighAlert

public java.lang.Integer getPowerHighAlert()
Get power_high_alert field Units: watts

Returns:
power_high_alert

setPowerHighAlert

public void setPowerHighAlert(java.lang.Integer powerHighAlert)
Set power_high_alert field Units: watts

Parameters:
powerHighAlert -

getPowerLowAlert

public java.lang.Integer getPowerLowAlert()
Get power_low_alert field Units: watts

Returns:
power_low_alert

setPowerLowAlert

public void setPowerLowAlert(java.lang.Integer powerLowAlert)
Set power_low_alert field Units: watts

Parameters:
powerLowAlert -

getTimeDurationAlert

public java.lang.Float getTimeDurationAlert()
Get time_duration_alert field Units: s

Returns:
time_duration_alert

setTimeDurationAlert

public void setTimeDurationAlert(java.lang.Float timeDurationAlert)
Set time_duration_alert field Units: s

Parameters:
timeDurationAlert -

getDistanceDurationAlert

public java.lang.Float getDistanceDurationAlert()
Get distance_duration_alert field Units: m

Returns:
distance_duration_alert

setDistanceDurationAlert

public void setDistanceDurationAlert(java.lang.Float distanceDurationAlert)
Set distance_duration_alert field Units: m

Parameters:
distanceDurationAlert -

getCalorieDurationAlert

public java.lang.Long getCalorieDurationAlert()
Get calorie_duration_alert field Units: calories

Returns:
calorie_duration_alert

setCalorieDurationAlert

public void setCalorieDurationAlert(java.lang.Long calorieDurationAlert)
Set calorie_duration_alert field Units: calories

Parameters:
calorieDurationAlert -

getFitnessEquipmentState

public FitnessEquipmentState getFitnessEquipmentState()
Get fitness_equipment_state field

Returns:
fitness_equipment_state

setFitnessEquipmentState

public void setFitnessEquipmentState(FitnessEquipmentState fitnessEquipmentState)
Set fitness_equipment_state field

Parameters:
fitnessEquipmentState -

getSportPoint

public java.lang.Long getSportPoint()
Get sport_point field

Returns:
sport_point

setSportPoint

public void setSportPoint(java.lang.Long sportPoint)
Set sport_point field

Parameters:
sportPoint -

getGearChangeData

public java.lang.Long getGearChangeData()
Get gear_change_data field

Returns:
gear_change_data

setGearChangeData

public void setGearChangeData(java.lang.Long gearChangeData)
Set gear_change_data field

Parameters:
gearChangeData -

getRiderPosition

public RiderPositionType getRiderPosition()
Get rider_position field Comment: Indicates the rider position value.

Returns:
rider_position

setRiderPosition

public void setRiderPosition(RiderPositionType riderPosition)
Set rider_position field Comment: Indicates the rider position value.

Parameters:
riderPosition -

getCommTimeout

public java.lang.Integer getCommTimeout()
Get comm_timeout field

Returns:
comm_timeout

setCommTimeout

public void setCommTimeout(java.lang.Integer commTimeout)
Set comm_timeout field

Parameters:
commTimeout -

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 -

getScore

public java.lang.Integer getScore()
Get score field Comment: Do not populate directly. Autogenerated by decoder for sport_point subfield components

Returns:
score

setScore

public void setScore(java.lang.Integer score)
Set score field Comment: Do not populate directly. Autogenerated by decoder for sport_point subfield components

Parameters:
score -

getOpponentScore

public java.lang.Integer getOpponentScore()
Get opponent_score field Comment: Do not populate directly. Autogenerated by decoder for sport_point subfield components

Returns:
opponent_score

setOpponentScore

public void setOpponentScore(java.lang.Integer opponentScore)
Set opponent_score field Comment: Do not populate directly. Autogenerated by decoder for sport_point subfield components

Parameters:
opponentScore -

getFrontGearNum

public java.lang.Short getFrontGearNum()
Get front_gear_num field Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Front gear number. 1 is innermost.

Returns:
front_gear_num

setFrontGearNum

public void setFrontGearNum(java.lang.Short frontGearNum)
Set front_gear_num field Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Front gear number. 1 is innermost.

Parameters:
frontGearNum -

getFrontGear

public java.lang.Short getFrontGear()
Get front_gear field Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Number of front teeth.

Returns:
front_gear

setFrontGear

public void setFrontGear(java.lang.Short frontGear)
Set front_gear field Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Number of front teeth.

Parameters:
frontGear -

getRearGearNum

public java.lang.Short getRearGearNum()
Get rear_gear_num field Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Rear gear number. 1 is innermost.

Returns:
rear_gear_num

setRearGearNum

public void setRearGearNum(java.lang.Short rearGearNum)
Set rear_gear_num field Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Rear gear number. 1 is innermost.

Parameters:
rearGearNum -

getRearGear

public java.lang.Short getRearGear()
Get rear_gear field Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Number of rear teeth.

Returns:
rear_gear

setRearGear

public void setRearGear(java.lang.Short rearGear)
Set rear_gear field Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Number of rear teeth.

Parameters:
rearGear -

getDeviceIndex

public java.lang.Short getDeviceIndex()
Get device_index field

Returns:
device_index

setDeviceIndex

public void setDeviceIndex(java.lang.Short deviceIndex)
Set device_index field

Parameters:
deviceIndex -