public class CurveFittingLocationFilter extends Object implements LocationFilter, Releasable
Constructor and Description |
---|
CurveFittingLocationFilter() |
Modifier and Type | Method and Description |
---|---|
void |
add(Point2d location,
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.
|
Point2d |
getScaledDirectionVector()
Returns current direction vector scaled by velocity.
|
boolean |
isConfigurable()
Tests, if this object is configurable.
|
void |
reset()
Resets the filter to initial state.
|
void |
setSize(int size) |
public void setSize(int size)
public Point2d getScaledDirectionVector()
null
if too few point are in
the filter or no timestamps are available.public String getName()
LocationFilter
getName
in interface LocationFilter
public void add(Point2d location, long timestamp)
LocationFilter
The position may be null
if the lateration algorithm
couldn't calculate the position.
add
in interface LocationFilter
location
- 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.