public class NBScriptClassifier extends ScriptClassifier
Modifier and Type | Field and Description |
---|---|
static int |
AREA_COVERAGE |
static int |
CENTER_START |
static int |
FALSE |
static int |
FIXED_VERTICAL |
static int |
HAS_WEDGES |
static int |
LOCAL_FINISH |
static int |
MULTIPLE_POINT_REVISITS |
static int |
NONE |
static int |
NUMBER_OF_LEGS |
protected static int |
NUMCHARS
The number of Boolean characteristics that are used in classification
|
static int |
ORTHOGONAL_TRACKS |
static int |
PARALLEL_TRACKS |
static int |
POINT_FOCUS |
static int |
SPEED_CHANGES |
static int |
STATIONARY |
static int |
SWEEPWIDTH_RATIO |
static int |
TRUE |
FIVEDEGREES, geoOriginLat, geoOriginLon, hasSetPosition, MONITOR_TRANSMISSIONS, multiVisitedPoints, NUMGOALTYPES, ONEDEGREE, opArea, PATROL, planner, positionSequence, REPOSITION, SEARCH_AREA, SEARCH_POINT, verticalSequence
Constructor and Description |
---|
NBScriptClassifier(ReversePlanner planner)
Creates a new instance of NBScriptClassifier
|
Modifier and Type | Method and Description |
---|---|
protected int[] |
characterizeScript(AvclMission mission,
VehicleCharacteristics chars)
Determines characteristic values for a script mission
|
protected int |
classifyScript(AvclMission mission,
VehicleCharacteristics chars)
Runs the script analyzer to determine the type of goal that corresponds to the script
|
protected int |
closestFit(AvclMission mission,
VehicleCharacteristics chars)
Returns an integer enumeration for the best matching goal type for the script
|
protected GeoArea |
getConvexHull(List<double[]> pointList)
Generates a convex hull shell encapsulating a set of points
|
protected void |
initialize()
Loads the recall cases into the RecallSet and does other startup initialization
|
static void |
main(String[] args)
Main method included for troubleshooting only
|
static void |
printCharacteristics(int[] charArray)
Prints a summary of the mission's characteristic values
|
protected void |
reinitialize(int exclude)
Reloads the recall cases into the recall set and excludes
a single case so that it can be tested accurately
|
isColocated, isParallel, numUniquePoints
protected static final int NUMCHARS
public static final int STATIONARY
public static final int AREA_COVERAGE
public static final int POINT_FOCUS
public static final int PARALLEL_TRACKS
public static final int ORTHOGONAL_TRACKS
public static final int MULTIPLE_POINT_REVISITS
public static final int LOCAL_FINISH
public static final int SWEEPWIDTH_RATIO
public static final int NUMBER_OF_LEGS
public static final int SPEED_CHANGES
public static final int CENTER_START
public static final int HAS_WEDGES
public static final int FIXED_VERTICAL
public static final int FALSE
public static final int TRUE
public static final int NONE
public NBScriptClassifier(ReversePlanner planner)
planner
- the reverse planner that the classifier is a part ofprotected void initialize()
initialize
in class ScriptClassifier
protected void reinitialize(int exclude)
exclude
- case to be excluded from the updated probabilities calculationprotected int classifyScript(AvclMission mission, VehicleCharacteristics chars)
classifyScript
in class ScriptClassifier
mission
- mission for which a characteristics array is to be generatedchars
- characteristics of the vehicle for which the script is intendedprotected int[] characterizeScript(AvclMission mission, VehicleCharacteristics chars)
mission
- mission for which a characteristics array is to be generatedchars
- characteristics of the vehicle for which the script is intendedprotected int closestFit(AvclMission mission, VehicleCharacteristics chars)
closestFit
in class ScriptClassifier
mission
- mission for which a characteristics is to be determinedchars
- characteristics of the vehicleprotected GeoArea getConvexHull(List<double[]> pointList)
pointList
- sequential list of points that the area is to containpublic static void printCharacteristics(int[] charArray)
charArray
- array of characteristic valuespublic static void main(String[] args)
args
-