public class NTErrorRangingFilter extends Object implements RangingFilter, Releasable
Constructor and Description |
---|
NTErrorRangingFilter() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Frame parent)
If this object is configurable, a dialog to configure the
object is shown.
|
double[] |
filter(double[] measuredDistances,
double[] realDistances,
long timestamp)
Filter measured distances to anchors.
|
String |
getName()
Gets a readable name of the ranging filter for display reasons.
|
boolean |
isConfigurable()
Tests, if this object is configurable.
|
void |
reset()
Resets the ranging to initial state.
|
public String getName()
RangingFilter
getName
in interface RangingFilter
public double[] filter(double[] measuredDistances, double[] realDistances, long timestamp)
RangingFilter
Entries in the measured distances might be -1
if measurement to
the corresponding anchor failed!
The filter must also return -1
if measurement stayed in failed
status!
filter
in interface RangingFilter
measuredDistances
- The measured distances to the anchor nodes in
meters or -1
if measurement failed.realDistances
- The real distances to the anchor nodes in meters or
null
if not available.timestamp
- Timestamp in milliseconds or -1
if no timestamp
is available.public void reset()
RangingFilter
reset
in interface RangingFilter
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.