public interface AnchorSelection extends Configurable
Modifier and Type | Method and Description |
---|---|
void |
deriveLogFilename(int uid,
LaterationAlgorithm algorithm,
LocationFilter filter)
Sets information to derive a unique log filename.
|
String |
getName()
Gets a readable name of the anchor selection algorithm for display reasons.
|
void |
reset()
Resets the anchor selection to initial state.
|
AnchorSelectionResult |
select(Point2d[] anchors,
double[] measuredDistances,
Point2d lastLocation)
Do anchor selection.
|
AnchorSelectionResult |
select(Point2d[] anchors,
double[] measuredDistances,
Point2d lastLocation,
long timestamp)
Do anchor selection.
|
configure, isConfigurable
String getName()
void deriveLogFilename(int uid, LaterationAlgorithm algorithm, LocationFilter filter)
The file name can consist of the UID only or may be extended by the algorithm and filter names.
uid
- Unique ID for the log file.algorithm
- Algorithm assigned with the UID.filter
- Location filter assigned with the UID or null
if
no filter is set.AnchorSelectionResult select(Point2d[] anchors, double[] measuredDistances, Point2d lastLocation)
The algorithm may not alter the input arrays!
anchors
- Available anchors.measuredDistances
- Measured distances to anchors.lastLocation
- The last calculated position or null
if not available.AnchorSelectionResult select(Point2d[] anchors, double[] measuredDistances, Point2d lastLocation, long timestamp)
The algorithm may not alter the input arrays!
anchors
- Available anchors.measuredDistances
- Measured distances to anchors.lastLocation
- The last calculated position or null
if not available.timestamp
- Timestamp in milliseconds.void reset()
Copyright © 2012 Thomas Hillebrandt. All Rights Reserved.