|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.garmin.fit.MonitoringReader
public class MonitoringReader
Field Summary | |
---|---|
static java.lang.String |
ACTIVE_CAL_STRING
|
static java.lang.String |
ACTIVE_TIME_STRING
|
static java.lang.String |
ASCENT_STRING
|
static java.lang.String |
CALORIE_STRING
|
static java.lang.String |
CYCLES_STRING
|
static int |
DAILY_INTERVAL
|
static java.lang.String |
DESCENT_STRING
|
static java.lang.String |
DISTANCE_STRING
|
static java.lang.String |
HR_STRING
|
static java.lang.String |
INTENSITY_STRING
|
static java.lang.String |
MOD_ACTIVITY_MIN_STRING
|
static java.lang.String |
TEMPERATURE_STRING
|
static java.lang.String |
VIG_ACTIVITY_MIN_STRING
|
Constructor Summary | |
---|---|
MonitoringReader(int interval)
|
Method Summary | |
---|---|
void |
addListener(MonitoringMesgListener mesgListener)
Adds a listener for decoded monitoring data. |
void |
broadcast()
Broadcast all pending monitoring data. |
void |
excludeAllFields()
|
java.util.HashMap<java.lang.String,java.lang.Boolean> |
getFieldStates()
|
void |
includeAllFields()
|
void |
onMesg(DeviceSettingsMesg mesg)
Sets the local and UTC time stamp offsets based on information from the passed in DeviceSettingsMesg |
void |
onMesg(MonitoringInfoMesg mesg)
Updates the stored information message and local time offset from information contained in the passed in MonitoringInfoMesg . |
void |
onMesg(MonitoringMesg mesg)
Extracts data from the passed in MonitoringMesg into a new message,
then updates the list of messages in the interval and the last message variable. |
void |
outputDailyTotals()
Enables output of data from start of day instead of start of file. |
void |
setFieldIncluded(java.lang.String field,
boolean state)
|
void |
setSystemToLocalTimestampOffset(long offset)
Set offset in seconds from system time to local time. |
void |
setSystemToUtcTimestampOffset(long offset)
Set offset in seconds from system time to UTC time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DAILY_INTERVAL
public static final java.lang.String CYCLES_STRING
public static final java.lang.String DISTANCE_STRING
public static final java.lang.String ACTIVE_CAL_STRING
public static final java.lang.String CALORIE_STRING
public static final java.lang.String ACTIVE_TIME_STRING
public static final java.lang.String INTENSITY_STRING
public static final java.lang.String HR_STRING
public static final java.lang.String TEMPERATURE_STRING
public static final java.lang.String ASCENT_STRING
public static final java.lang.String DESCENT_STRING
public static final java.lang.String MOD_ACTIVITY_MIN_STRING
public static final java.lang.String VIG_ACTIVITY_MIN_STRING
Constructor Detail |
---|
public MonitoringReader(int interval)
interval
- Duration of time to be contained in the broadcast monitoring
messages.Method Detail |
---|
public void setFieldIncluded(java.lang.String field, boolean state)
public java.util.HashMap<java.lang.String,java.lang.Boolean> getFieldStates()
public void excludeAllFields()
public void includeAllFields()
public void outputDailyTotals()
public void setSystemToUtcTimestampOffset(long offset)
offset
- UTC offset in secondspublic void setSystemToLocalTimestampOffset(long offset)
offset
- local time offset in secondspublic void addListener(MonitoringMesgListener mesgListener)
mesgListener
- Listener for output monitoring data messagespublic void broadcast()
public void onMesg(MonitoringInfoMesg mesg)
MonitoringInfoMesg
.
onMesg
in interface MonitoringInfoMesgListener
mesg
- The message containing cycle conversion factorspublic void onMesg(MonitoringMesg mesg)
MonitoringMesg
into a new message,
then updates the list of messages in the interval and the last message variable.
onMesg
in interface MonitoringMesgListener
mesg
- The message containing needed informationpublic void onMesg(DeviceSettingsMesg mesg)
DeviceSettingsMesg
onMesg
in interface DeviceSettingsMesgListener
mesg
- The message containing needed information
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |