public class KalmanCFLocationFilter extends Object implements LocationFilter, Releasable
Constructor and Description |
---|
KalmanCFLocationFilter() |
Modifier and Type | Method and Description |
---|---|
void |
add(Point2d loc,
long timestamp)
Adds a position to the location filter.
|
void |
configure(Frame parent)
If this object is configurable, a dialog to configure the
object is shown.
|
Point2d |
get()
Gets the next position from the location filter.
|
String |
getName()
Gets a readable name of the location filter for display reasons.
|
boolean |
isConfigurable()
Tests, if this object is configurable.
|
void |
reset()
Resets the filter to initial state.
|
public String getName()
LocationFilter
getName
in interface LocationFilter
public void add(Point2d loc, long timestamp)
LocationFilter
The position may be null
if the lateration algorithm
couldn't calculate the position.
add
in interface LocationFilter
loc
- The position to add.timestamp
- The timestamp of the position in milliseconds
or -1
if no timestamp is available.public Point2d get()
LocationFilter
get
in interface LocationFilter
public void reset()
LocationFilter
reset
in interface LocationFilter
public boolean isConfigurable()
Configurable
isConfigurable
in interface Configurable
true
if this object is configurable;
false
otherwise.public void configure(Frame parent)
Configurable
configure
in interface Configurable
parent
- The parent frame of the new dialog.Copyright © 2012 Thomas Hillebrandt. All Rights Reserved.