public class EventMesg extends Mesg implements MesgWithEvent
Modifier and Type | Field and Description |
---|---|
static int |
ActivityTypeFieldNum |
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 |
RadarThreatAvgApproachSpeedFieldNum |
static int |
RadarThreatCountFieldNum |
static int |
RadarThreatLevelMaxFieldNum |
static int |
RadarThreatMaxApproachSpeedFieldNum |
static int |
RearGearFieldNum |
static int |
RearGearNumFieldNum |
static int |
ScoreFieldNum |
static int |
StartTimestampFieldNum |
static int |
TimestampFieldNum |
developerFields, fields, localNum, name, num, systemTimeOffset
Modifier and Type | Method and Description |
---|---|
ActivityType |
getActivityType()
Get activity_type field
Comment: Activity Type associated with an auto_activity_detect event
|
java.lang.Integer |
getAutoActivityDetectDuration()
Get auto_activity_detect_duration field
Units: min
|
DateTime |
getAutoActivityDetectStartTimestamp()
Get auto_activity_detect_start_timestamp field
Units: s
Comment: Auto Activity Detect Start Timestamp.
|
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
|
DiveAlert |
getDiveAlert()
Get dive_alert field
|
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.Long |
getRadarThreatAlert()
Get radar_threat_alert field
Comment: The first byte is the radar_threat_level_max, the second byte is the radar_threat_count, third bytes is the average approach speed, and the 4th byte is the max approach speed
|
java.lang.Float |
getRadarThreatAvgApproachSpeed()
Get radar_threat_avg_approach_speed field
Units: m/s
Comment: Do not populate directly.
|
java.lang.Short |
getRadarThreatCount()
Get radar_threat_count field
Comment: Do not populate directly.
|
RadarThreatLevelType |
getRadarThreatLevelMax()
Get radar_threat_level_max field
Comment: Do not populate directly.
|
java.lang.Float |
getRadarThreatMaxApproachSpeed()
Get radar_threat_max_approach_speed field
Units: m/s
Comment: Do not populate directly.
|
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
|
DateTime |
getStartTimestamp()
Get start_timestamp field
Units: s
Comment: Timestamp of when the event started
|
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 |
setActivityType(ActivityType activityType)
Set activity_type field
Comment: Activity Type associated with an auto_activity_detect event
|
void |
setAutoActivityDetectDuration(java.lang.Integer autoActivityDetectDuration)
Set auto_activity_detect_duration field
Units: min
|
void |
setAutoActivityDetectStartTimestamp(DateTime autoActivityDetectStartTimestamp)
Set auto_activity_detect_start_timestamp field
Units: s
Comment: Auto Activity Detect Start Timestamp.
|
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 |
setDiveAlert(DiveAlert diveAlert)
Set dive_alert 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 |
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 |
setRadarThreatAlert(java.lang.Long radarThreatAlert)
Set radar_threat_alert field
Comment: The first byte is the radar_threat_level_max, the second byte is the radar_threat_count, third bytes is the average approach speed, and the 4th byte is the max approach speed
|
void |
setRadarThreatAvgApproachSpeed(java.lang.Float radarThreatAvgApproachSpeed)
Set radar_threat_avg_approach_speed field
Units: m/s
Comment: Do not populate directly.
|
void |
setRadarThreatCount(java.lang.Short radarThreatCount)
Set radar_threat_count field
Comment: Do not populate directly.
|
void |
setRadarThreatLevelMax(RadarThreatLevelType radarThreatLevelMax)
Set radar_threat_level_max field
Comment: Do not populate directly.
|
void |
setRadarThreatMaxApproachSpeed(java.lang.Float radarThreatMaxApproachSpeed)
Set radar_threat_max_approach_speed field
Units: m/s
Comment: Do not populate directly.
|
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 |
setStartTimestamp(DateTime startTimestamp)
Set start_timestamp field
Units: s
Comment: Timestamp of when the event started
|
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
|
addDeveloperField, addField, getActiveSubFieldIndex, getActiveSubFieldName, getDecoderMesgIndex, 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, setDecoderMessageIndex, setField, setFields, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setLocalNum, timestampToDateTime, write, write
public static final int TimestampFieldNum
public static final int EventFieldNum
public static final int EventTypeFieldNum
public static final int Data16FieldNum
public static final int DataFieldNum
public static final int EventGroupFieldNum
public static final int ScoreFieldNum
public static final int OpponentScoreFieldNum
public static final int FrontGearNumFieldNum
public static final int FrontGearFieldNum
public static final int RearGearNumFieldNum
public static final int RearGearFieldNum
public static final int DeviceIndexFieldNum
public static final int ActivityTypeFieldNum
public static final int StartTimestampFieldNum
public static final int RadarThreatLevelMaxFieldNum
public static final int RadarThreatCountFieldNum
public static final int RadarThreatAvgApproachSpeedFieldNum
public static final int RadarThreatMaxApproachSpeedFieldNum
protected static final Mesg eventMesg
public EventMesg()
public EventMesg(Mesg mesg)
public DateTime getTimestamp()
getTimestamp
in interface MesgWithEvent
public void setTimestamp(DateTime timestamp)
setTimestamp
in interface MesgWithEvent
timestamp
- The new timestamp value to be setpublic Event getEvent()
getEvent
in interface MesgWithEvent
public void setEvent(Event event)
setEvent
in interface MesgWithEvent
event
- The new event value to be setpublic EventType getEventType()
getEventType
in interface MesgWithEvent
public void setEventType(EventType eventType)
setEventType
in interface MesgWithEvent
eventType
- The new eventType value to be setpublic java.lang.Integer getData16()
public void setData16(java.lang.Integer data16)
data16
- The new data16 value to be setpublic java.lang.Long getData()
public void setData(java.lang.Long data)
data
- The new data value to be setpublic TimerTrigger getTimerTrigger()
public void setTimerTrigger(TimerTrigger timerTrigger)
timerTrigger
- The new timerTrigger value to be setpublic java.lang.Integer getCoursePointIndex()
public void setCoursePointIndex(java.lang.Integer coursePointIndex)
coursePointIndex
- The new coursePointIndex value to be setpublic java.lang.Float getBatteryLevel()
public void setBatteryLevel(java.lang.Float batteryLevel)
batteryLevel
- The new batteryLevel value to be setpublic java.lang.Float getVirtualPartnerSpeed()
public void setVirtualPartnerSpeed(java.lang.Float virtualPartnerSpeed)
virtualPartnerSpeed
- The new virtualPartnerSpeed value to be setpublic java.lang.Short getHrHighAlert()
public void setHrHighAlert(java.lang.Short hrHighAlert)
hrHighAlert
- The new hrHighAlert value to be setpublic java.lang.Short getHrLowAlert()
public void setHrLowAlert(java.lang.Short hrLowAlert)
hrLowAlert
- The new hrLowAlert value to be setpublic java.lang.Float getSpeedHighAlert()
public void setSpeedHighAlert(java.lang.Float speedHighAlert)
speedHighAlert
- The new speedHighAlert value to be setpublic java.lang.Float getSpeedLowAlert()
public void setSpeedLowAlert(java.lang.Float speedLowAlert)
speedLowAlert
- The new speedLowAlert value to be setpublic java.lang.Integer getCadHighAlert()
public void setCadHighAlert(java.lang.Integer cadHighAlert)
cadHighAlert
- The new cadHighAlert value to be setpublic java.lang.Integer getCadLowAlert()
public void setCadLowAlert(java.lang.Integer cadLowAlert)
cadLowAlert
- The new cadLowAlert value to be setpublic java.lang.Integer getPowerHighAlert()
public void setPowerHighAlert(java.lang.Integer powerHighAlert)
powerHighAlert
- The new powerHighAlert value to be setpublic java.lang.Integer getPowerLowAlert()
public void setPowerLowAlert(java.lang.Integer powerLowAlert)
powerLowAlert
- The new powerLowAlert value to be setpublic java.lang.Float getTimeDurationAlert()
public void setTimeDurationAlert(java.lang.Float timeDurationAlert)
timeDurationAlert
- The new timeDurationAlert value to be setpublic java.lang.Float getDistanceDurationAlert()
public void setDistanceDurationAlert(java.lang.Float distanceDurationAlert)
distanceDurationAlert
- The new distanceDurationAlert value to be setpublic java.lang.Long getCalorieDurationAlert()
public void setCalorieDurationAlert(java.lang.Long calorieDurationAlert)
calorieDurationAlert
- The new calorieDurationAlert value to be setpublic FitnessEquipmentState getFitnessEquipmentState()
public void setFitnessEquipmentState(FitnessEquipmentState fitnessEquipmentState)
fitnessEquipmentState
- The new fitnessEquipmentState value to be setpublic java.lang.Long getSportPoint()
public void setSportPoint(java.lang.Long sportPoint)
sportPoint
- The new sportPoint value to be setpublic java.lang.Long getGearChangeData()
public void setGearChangeData(java.lang.Long gearChangeData)
gearChangeData
- The new gearChangeData value to be setpublic RiderPositionType getRiderPosition()
public void setRiderPosition(RiderPositionType riderPosition)
riderPosition
- The new riderPosition value to be setpublic java.lang.Integer getCommTimeout()
public void setCommTimeout(java.lang.Integer commTimeout)
commTimeout
- The new commTimeout value to be setpublic DiveAlert getDiveAlert()
public void setDiveAlert(DiveAlert diveAlert)
diveAlert
- The new diveAlert value to be setpublic java.lang.Integer getAutoActivityDetectDuration()
public void setAutoActivityDetectDuration(java.lang.Integer autoActivityDetectDuration)
autoActivityDetectDuration
- The new autoActivityDetectDuration value to be setpublic java.lang.Long getRadarThreatAlert()
public void setRadarThreatAlert(java.lang.Long radarThreatAlert)
radarThreatAlert
- The new radarThreatAlert value to be setpublic java.lang.Short getEventGroup()
getEventGroup
in interface MesgWithEvent
public void setEventGroup(java.lang.Short eventGroup)
setEventGroup
in interface MesgWithEvent
eventGroup
- The new eventGroup value to be setpublic java.lang.Integer getScore()
public void setScore(java.lang.Integer score)
score
- The new score value to be setpublic java.lang.Integer getOpponentScore()
public void setOpponentScore(java.lang.Integer opponentScore)
opponentScore
- The new opponentScore value to be setpublic java.lang.Short getFrontGearNum()
public void setFrontGearNum(java.lang.Short frontGearNum)
frontGearNum
- The new frontGearNum value to be setpublic java.lang.Short getFrontGear()
public void setFrontGear(java.lang.Short frontGear)
frontGear
- The new frontGear value to be setpublic java.lang.Short getRearGearNum()
public void setRearGearNum(java.lang.Short rearGearNum)
rearGearNum
- The new rearGearNum value to be setpublic java.lang.Short getRearGear()
public void setRearGear(java.lang.Short rearGear)
rearGear
- The new rearGear value to be setpublic java.lang.Short getDeviceIndex()
public void setDeviceIndex(java.lang.Short deviceIndex)
deviceIndex
- The new deviceIndex value to be setpublic ActivityType getActivityType()
public void setActivityType(ActivityType activityType)
activityType
- The new activityType value to be setpublic DateTime getStartTimestamp()
public void setStartTimestamp(DateTime startTimestamp)
startTimestamp
- The new startTimestamp value to be setpublic DateTime getAutoActivityDetectStartTimestamp()
public void setAutoActivityDetectStartTimestamp(DateTime autoActivityDetectStartTimestamp)
autoActivityDetectStartTimestamp
- The new autoActivityDetectStartTimestamp value to be setpublic RadarThreatLevelType getRadarThreatLevelMax()
public void setRadarThreatLevelMax(RadarThreatLevelType radarThreatLevelMax)
radarThreatLevelMax
- The new radarThreatLevelMax value to be setpublic java.lang.Short getRadarThreatCount()
public void setRadarThreatCount(java.lang.Short radarThreatCount)
radarThreatCount
- The new radarThreatCount value to be setpublic java.lang.Float getRadarThreatAvgApproachSpeed()
public void setRadarThreatAvgApproachSpeed(java.lang.Float radarThreatAvgApproachSpeed)
radarThreatAvgApproachSpeed
- The new radarThreatAvgApproachSpeed value to be setpublic java.lang.Float getRadarThreatMaxApproachSpeed()
public void setRadarThreatMaxApproachSpeed(java.lang.Float radarThreatMaxApproachSpeed)
radarThreatMaxApproachSpeed
- The new radarThreatMaxApproachSpeed value to be set