public abstract class ScriptClassifier extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static double | FIVEDEGREES | 
| protected static double | geoOriginLatThe Latitude of the origin of the Cartesian coordinate system of the mission | 
| protected static double | geoOriginLonThe Longitude of the origin of the Cartesian coordinate system of the mission | 
| protected static boolean | hasSetPositionSet to true if the mission contains a SetPosition command | 
| static int | MONITOR_TRANSMISSIONS | 
| protected static List<double[]> | multiVisitedPointsThe set of points that are visited more than once over the course of the mission | 
| static int | NUMGOALTYPES | 
| static double | ONEDEGREE | 
| protected static GeoArea | opAreaThe operating area of the mission | 
| static int | PATROL | 
| protected static ReversePlanner | plannerReference to the reverse planner that the classifier is a part of | 
| protected static List<double[]> | positionSequenceSequence of geographic points over which the script progresses | 
| static int | REPOSITION | 
| static int | SEARCH_AREA | 
| static int | SEARCH_POINT | 
| protected static List<double[]> | verticalSequenceSequence of altitudes and depths over which the script progresses | 
| Constructor and Description | 
|---|
| ScriptClassifier(ReversePlanner planner)Used to test
    protected GeoPolygon testArea;
    /**
 Creates a new instance of ScriptClassifier | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract int | classifyScript(AvclMission mission,
              VehicleCharacteristics chars)Runs the script categorizer to identify the appropriate agenda goal type corresponding to the script | 
| protected abstract int | closestFit(AvclMission mission,
          VehicleCharacteristics chars)Returns an integer enumeration for the best matching goal type for the script | 
| protected abstract void | initialize()Loads the recall cases into the RecallSet and does other startup initialization | 
| protected boolean | isColocated(double[] point1,
           double[] point2,
           double tolerance)Returns true if two points are colocated within the specified tolerance | 
| protected boolean | isParallel(double head1,
          double head2,
          double tolerance)Returns true if two headings are parallel (within the specified tolerance) | 
| protected int | numUniquePoints(List<double[]> pointList,
               double tolerance)Returns the number of unique points in an ArrayList of points | 
public static final double ONEDEGREE
public static final double FIVEDEGREES
public static final int NUMGOALTYPES
public static final int MONITOR_TRANSMISSIONS
public static final int PATROL
public static final int REPOSITION
public static final int SEARCH_AREA
public static final int SEARCH_POINT
protected static double geoOriginLat
protected static double geoOriginLon
protected static List<double[]> positionSequence
protected static List<double[]> verticalSequence
protected static GeoArea opArea
protected static boolean hasSetPosition
protected static ReversePlanner planner
protected static List<double[]> multiVisitedPoints
public ScriptClassifier(ReversePlanner planner)
planner - the reverse planner that the classifier is a part ofprotected abstract void initialize()
protected abstract int classifyScript(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 abstract int closestFit(AvclMission mission, VehicleCharacteristics chars)
mission - chars - protected boolean isParallel(double head1,
                 double head2,
                 double tolerance)
head1 - direction (radians) of the first headinghead2 - direction (radians) of the second headingtolerance - amount of angular difference that is still considered parallelprotected boolean isColocated(double[] point1,
                  double[] point2,
                  double tolerance)
point1 - double[2] with the Cartesian coordinates of the first pointpoint2 - double[2] with the Cartesian coordinates of the second pointtolerance - distance at which the points will be considered colocatedprotected int numUniquePoints(List<double[]> pointList, double tolerance)
pointList - sequence of Cartesian geographic points (double[2])tolerance - distance at which the points will be considered colocated