|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgps.log.GPSFilter
public class GPSFilter
This class implements a filter for a GPSRecord
.
A GPSRecord
can be presented to the doFilter method and it will
indicate whether the record must be kept or not.
This class simplifies setting filter options in the application.
Field Summary | |
---|---|
static int |
TRKPT
Index to trackpoint filter (in array of GPSFilter). |
static int |
WAYPT
Index to waypoint filter (in array of GPSFilter). |
Constructor Summary | |
---|---|
GPSFilter()
|
Method Summary | |
---|---|
boolean |
doFilter(GPSRecord r)
Filter the GPS record |
int |
getEndTime()
Get the last date of the period to include. |
int |
getRcrMask()
Sets the 'RCR' filter mask for the given filter type and the currently active filters. |
int |
getStartTime()
Get the first date of the period to include. |
int |
getValidMask()
Gets the 'Valid' filter mask. |
void |
setEndTime(int endTime)
Set the last date of the period to include (UTC time value). |
void |
setRcrMask(int rcrMask)
Sets the 'RCR' filter mask for the given filter type and the currently active filters. |
void |
setStartTime(int startTime)
Set the first date of the period to include (UTC time value). |
void |
setValidMask(int validMask)
Sets the 'Valid' filter mask. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TRKPT
public static final int WAYPT
Constructor Detail |
---|
public GPSFilter()
Method Detail |
---|
public final int getStartTime()
public final void setStartTime(int startTime)
public final int getEndTime()
public final void setEndTime(int endTime)
public final int getRcrMask()
BT747Constants.RCR_TIME_MASK
BT747Constants.RCR_SPEED_MASK
BT747Constants.RCR_DISTANCE_MASK
BT747Constants.RCR_BUTTON_MASK
BT747Constants.RCR_APP0_MASK
BT747Constants.RCR_APP1_MASK
BT747Constants.RCR_APP2_MASK
BT747Constants.RCR_APP3_MASK
BT747Constants.RCR_APP4_MASK
BT747Constants.RCR_APP5_MASK
BT747Constants.RCR_APP6_MASK
BT747Constants.RCR_APP7_MASK
BT747Constants.RCR_APP8_MASK
BT747Constants.RCR_APP9_MASK
BT747Constants.RCR_APPY_MASK
BT747Constants.RCR_APPZ_MASK
BT747Constants.RCR_ALL_APP_MASK
public final void setRcrMask(int rcrMask)
rcrMask
- The filter mask to set for the rcr filter. Use the following
constants:BT747Constants.RCR_TIME_MASK
BT747Constants.RCR_SPEED_MASK
BT747Constants.RCR_DISTANCE_MASK
BT747Constants.RCR_BUTTON_MASK
BT747Constants.RCR_APP0_MASK
BT747Constants.RCR_APP1_MASK
BT747Constants.RCR_APP2_MASK
BT747Constants.RCR_APP3_MASK
BT747Constants.RCR_APP4_MASK
BT747Constants.RCR_APP5_MASK
BT747Constants.RCR_APP6_MASK
BT747Constants.RCR_APP7_MASK
BT747Constants.RCR_APP8_MASK
BT747Constants.RCR_APP9_MASK
BT747Constants.RCR_APPY_MASK
BT747Constants.RCR_APPZ_MASK
BT747Constants.RCR_ALL_APP_MASK
public final int getValidMask()
BT747Constants.VALID_NO_FIX_MASK
BT747Constants.VALID_SPS_MASK
BT747Constants.VALID_DGPS_MASK
BT747Constants.VALID_PPS_MASK
BT747Constants.VALID_RTK_MASK
BT747Constants.VALID_FRTK_MASK
BT747Constants.VALID_ESTIMATED_MASK
BT747Constants.VALID_MANUAL_MASK
BT747Constants.VALID_SIMULATOR_MASK
public final void setValidMask(int validMask)
validMask
- The filter mask to set for the validity filter. Use the
following constants:BT747Constants.VALID_NO_FIX_MASK
BT747Constants.VALID_SPS_MASK
BT747Constants.VALID_DGPS_MASK
BT747Constants.VALID_PPS_MASK
BT747Constants.VALID_RTK_MASK
BT747Constants.VALID_FRTK_MASK
BT747Constants.VALID_ESTIMATED_MASK
BT747Constants.VALID_MANUAL_MASK
BT747Constants.VALID_SIMULATOR_MASK
public boolean doFilter(GPSRecord r)
r
- The GPS record
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |