public class SearchPlanStep extends PlanStep
Contact: Don Brutzman (web.nps.navy.mil/~brutzman) brutzman@nps.navy.mil
| Modifier and Type | Field and Description | 
|---|---|
| protected double | costThe cost of executing this step (distance traveled plus track spacing | 
| protected double[] | endPtThe vehicle position after this step | 
| protected double[] | startPtThe vehicle position upon commencing this step | 
| protected double | trackSpacingThe track spacing of the search of which this step is part | 
| Constructor and Description | 
|---|
| SearchPlanStep(double startPsi,
              double[] start,
              double[] end,
              double trackSpacing)Creates a new instance of SearchPlanStep | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | clone()Returns a deep copy of the plan step, implements Cloneable | 
| double | cost()Computes the cost of executing this distance as distance traveled plus track spacing | 
| double[] | getEnd()Returns the ending point of the transit represented by this plan step | 
| double[] | getStart()Returns the starting point of the transit represented by this plan step | 
| void | setCost(double newCost)Sets the cost of the step | 
| void | setEnd(double[] newEnd)Sets the ending point of the transit represented by this plan step | 
| void | setStart(double[] newStart)Sets the starting point of the transit represented by this plan step | 
| String | toString()Converts the plan step to a String | 
protected double[] startPt
protected double[] endPt
protected double trackSpacing
protected double cost
public SearchPlanStep(double startPsi,
              double[] start,
              double[] end,
              double trackSpacing)
startPsi - heading of the vehicle upon starting this pointstart - a double[2] containing the (x, y) position prior to this stepend - a double[2] containing the (x, y) position following this steptrackSpacing - the distance (meters) between tracks during the searchpublic double[] getStart()
public double[] getEnd()
public void setStart(double[] newStart)
newStart - 1 x 2 array with the (x, y) position prior to this steppublic void setEnd(double[] newEnd)
newEnd - 1 x 2 array with the (x, y) position following this steppublic void setCost(double newCost)
newCost - public double cost()
public Object clone()