public class SearchPatternPlanner extends Object implements Runnable
Contact: Don Brutzman (web.nps.navy.mil/~brutzman) brutzman@nps.navy.mil
| Modifier and Type | Field and Description | 
|---|---|
| static int | A_STAR_GENERATED_AREA_SRCH | 
| static int | A_STAR_GENERATED_POINT_SRCH | 
| static int | ANNEALED_TSP_GENERATED_AREA_SRCH | 
| static int | ANNEALED_TSP_GENERATED_POINT_SRCH | 
| static int | DEFAULT_PATTERN | 
| static int | EXPANDING_RECTANGLE_PATTERN | 
| static int | EXPANDING_SQUARE_PATTERN | 
| static int | HILL_CLIMB_GENERATED_AREA_SRCH | 
| static int | HILL_CLIMB_GENERATED_POINT_SRCH | 
| static int | HYBRID_SEARCH_GENERATED_AREA_SRCH | 
| static int | HYBRID_SEARCH_GENERATED_POINT_SRCH | 
| static int | PARALLEL_TRACK_PATTERN | 
| static int | SECTOR_PATTERN | 
| static int | SHRINKING_SQUARE_PATTERN | 
| static int | TSP_GENERATED_AREA_SRCH | 
| static int | TSP_GENERATED_POINT_SRCH | 
| protected static double | VISITPOINTMULTIPLE | 
| Constructor and Description | 
|---|
| SearchPatternPlanner(GeoArea searchArea,
                    boolean pointDatum,
                    double S,
                    double PD,
                    double[] startPosit,
                    int patternType)Creates a new instance of SearchPatternPlanner
 The planned search will provide for a search focused on the centroid of the area | 
| SearchPatternPlanner(GeoArea searchArea,
                    double S,
                    double PD,
                    double[] startPosit,
                    int patternType)Creates a new instance of SearchPatternPlanner
 The planned pattern will not focus on any individual point within the area, but will
 provide for essentially equivalent coverage of the entire area | 
| Modifier and Type | Method and Description | 
|---|---|
| Plan | getPlan()Returns the plan that was developed by the planner | 
| double[] | getStartPoint()Returns a reference to the search's starting position | 
| void | run()Implements the Runnable interface | 
| void | setPatternType(int type)Sets the pattern type that will be generated | 
| void | setPointDatum(boolean value)Sets the boolean value of the point datum flag (true if the search focus is the area centroid) | 
| void | setRequiredPD(double value)Sets the required single-search probability of detection of the search | 
| void | setStartPoint(double[] newPt)Sets the starting position of the search pattern | 
| void | setStartPoint(double newX,
             double newY)Sets the starting position of the search pattern | 
| void | setSweepWidth(double value)Sets the sweep width (defined in NWP 3-22.5 SAR TACAID) of the search | 
| double | setTrackSpacing()Computes and sets the track spacing to achieve the desired 1-search probability of detection
 The method uses the formula PD = 1 / (1 + 0.25 * (1 / C)) where C is the coverage factor | 
protected static final double VISITPOINTMULTIPLE
public static final int SECTOR_PATTERN
public static final int EXPANDING_SQUARE_PATTERN
public static final int EXPANDING_RECTANGLE_PATTERN
public static final int SHRINKING_SQUARE_PATTERN
public static final int PARALLEL_TRACK_PATTERN
public static final int A_STAR_GENERATED_POINT_SRCH
public static final int A_STAR_GENERATED_AREA_SRCH
public static final int HYBRID_SEARCH_GENERATED_POINT_SRCH
public static final int HYBRID_SEARCH_GENERATED_AREA_SRCH
public static final int HILL_CLIMB_GENERATED_POINT_SRCH
public static final int HILL_CLIMB_GENERATED_AREA_SRCH
public static final int TSP_GENERATED_POINT_SRCH
public static final int TSP_GENERATED_AREA_SRCH
public static final int ANNEALED_TSP_GENERATED_POINT_SRCH
public static final int ANNEALED_TSP_GENERATED_AREA_SRCH
public static final int DEFAULT_PATTERN
public SearchPatternPlanner(GeoArea searchArea, boolean pointDatum, double S, double PD, double[] startPosit, int patternType)
searchArea - geographic area that is to be searchedpointDatum - set to true if the search focus is a point in the search area (centroid)S - sensor sweep width as defined in NWP 3-22.5 (SAR TACAID)PD - required single-search probability of detection of the searchstartPosit - double[2] defining the vehicle's position at the beginning of the searchpatternType - enumeration for the type of pattern that is to be generatedpublic SearchPatternPlanner(GeoArea searchArea, double S, double PD, double[] startPosit, int patternType)
searchArea - geographic area that is to be searchedS - sensor sweep width as defined in NWP 3-22.5 (SAR TACAID)PD - required single-search probability of detection of the searchstartPosit - double[2] defining the vehicle's position at the beginning of the searchpatternType - enumeration for the type of pattern that is to be generatedpublic final void setPatternType(int type)
type - enumeration indicating the type of patternpublic final void setPointDatum(boolean value)
value - public double[] getStartPoint()
public double setTrackSpacing()
public final void setSweepWidth(double value)
value - new sweep width value (meters)public final void setRequiredPD(double value)
value - new required probability of detectionpublic void setStartPoint(double[] newPt)
newPt - double[2] containing the (x, y) coordinates of the search start pointpublic void setStartPoint(double newX,
                 double newY)
newX - x coordinate of the search start pointnewY - y coordinate of the search start pointpublic Plan getPlan()