gps.log
Class GPSFilterAdvanced

java.lang.Object
  extended by gps.log.GPSFilter
      extended by gps.log.GPSFilterAdvanced

public class GPSFilterAdvanced
extends 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.

Author:
Mario De Weerd

Field Summary
 
Fields inherited from class gps.log.GPSFilter
TRKPT, WAYPT
 
Constructor Summary
GPSFilterAdvanced()
           
 
Method Summary
 boolean doFilter(GPSRecord r)
          Filter the GPS record
 float getMaxDist()
           
 float getMaxHDOP()
           
 float getMaxPDOP()
           
 int getMaxRecCount()
           
 float getMaxSpeed()
           
 float getMaxVDOP()
           
 float getMinDist()
           
 int getMinNSAT()
           
 int getMinRecCnt()
           
 float getMinSpeed()
           
 void setMaxDist(float maxDist)
           
 void setMaxHDOP(int maxHDOP)
           
 void setMaxPDOP(int maxPDOP)
           
 void setMaxRecCount(int maxRecCnt)
           
 void setMaxSpeed(float maxSpeed)
           
 void setMaxVDOP(int maxVDOP)
           
 void setMinDist(float minDist)
           
 void setMinNSAT(int minNSAT)
           
 void setMinRecCount(int minRecCnt)
           
 void setMinSpeed(float minSpeed)
           
 
Methods inherited from class gps.log.GPSFilter
getEndTime, getRcrMask, getStartTime, getValidMask, setEndTime, setRcrMask, setStartTime, setValidMask, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GPSFilterAdvanced

public GPSFilterAdvanced()
Method Detail

doFilter

public boolean doFilter(GPSRecord r)
Description copied from class: GPSFilter
Filter the GPS record

Overrides:
doFilter in class GPSFilter
Parameters:
r - The GPS record
Returns:
true if the record is selected by the filter

getMaxDist

public final float getMaxDist()
Returns:
Returns the maxDist.

setMaxDist

public final void setMaxDist(float maxDist)
Parameters:
maxDist - The maxDist to set.

getMaxHDOP

public final float getMaxHDOP()
Returns:
Returns the maxHDOP.

setMaxHDOP

public final void setMaxHDOP(int maxHDOP)
Parameters:
maxHDOP - The maxHDOP to set.

getMaxPDOP

public final float getMaxPDOP()
Returns:
Returns the maxPDOP.

setMaxPDOP

public final void setMaxPDOP(int maxPDOP)
Parameters:
maxPDOP - The maxPDOP to set.

getMaxRecCount

public final int getMaxRecCount()
Returns:
Returns the maxRecCnt.

setMaxRecCount

public final void setMaxRecCount(int maxRecCnt)
Parameters:
maxRecCnt - The maxRecCnt to set.

getMaxSpeed

public final float getMaxSpeed()
Returns:
Returns the maxSpeed.

setMaxSpeed

public final void setMaxSpeed(float maxSpeed)
Parameters:
maxSpeed - The maxSpeed to set.

getMaxVDOP

public final float getMaxVDOP()
Returns:
Returns the maxVDOP.

setMaxVDOP

public final void setMaxVDOP(int maxVDOP)
Parameters:
maxVDOP - The maxVDOP to set.

getMinDist

public final float getMinDist()
Returns:
Returns the minDist.

setMinDist

public final void setMinDist(float minDist)
Parameters:
minDist - The minDist to set.

getMinNSAT

public final int getMinNSAT()
Returns:
Returns the minNSAT.

setMinNSAT

public final void setMinNSAT(int minNSAT)
Parameters:
minNSAT - The minNSAT to set.

getMinRecCnt

public final int getMinRecCnt()
Returns:
Returns the minRecCnt.

setMinRecCount

public final void setMinRecCount(int minRecCnt)
Parameters:
minRecCnt - The minRecCnt to set.

getMinSpeed

public final float getMinSpeed()
Returns:
Returns the minSpeed.

setMinSpeed

public final void setMinSpeed(float minSpeed)
Parameters:
minSpeed - The minSpeed to set.