public class PathLink extends Object implements Cloneable, Comparable<PathLink>
| Constructor and Description | 
|---|
| PathLink(double[] start,
        double[] end)Constructor | 
| PathLink(double startX,
        double startY,
        double endX,
        double endY)Constructor | 
| PathLink(PathLink link)Copy constructor | 
| PathLink(Point start,
        Point end)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| PathLink | clone()Implements the Cloneable interface | 
| int | compareTo(PathLink link2)Implements the Comparable interface
 Compares this link to another link using the "cost" value for comparison | 
| double | getCost()Returns the cost to the vehicle of transiting this link | 
| Point | getEndPoint() | 
| double | getEstimatedCost(double[] point)Provides an estimated minimum cost from this link to another point | 
| double | getEstimatedCost(double x,
                double y)Provides an estimated minimum cost from this link to another point | 
| double | getEstimatedCost(Point point)Provides an estimated minimum cost from this link to another point | 
| Point | getStartPoint() | 
| PathLink | nextLink(double[] nextEnd)Generates a new link from the end point of this one to a specified point | 
| PathLink | nextLink(double nextX,
        double nextY)Generates a new link from the end point of this one to a specified point | 
| PathLink | nextLink(Point nextEnd)Generates a new link from the end point of this one to a specified point | 
| String | toString()Generates a string representation of the LineSegment object | 
public PathLink(double[] start,
        double[] end)
start - end - public PathLink(double startX,
        double startY,
        double endX,
        double endY)
startX - startY - endX - endY - public PathLink(PathLink link)
link - public double getCost()
public PathLink clone()
public PathLink nextLink(Point nextEnd)
nextEnd - public PathLink nextLink(double[] nextEnd)
nextEnd - public PathLink nextLink(double nextX, double nextY)
nextX - nextY - public int compareTo(PathLink link2)
compareTo in interface Comparable<PathLink>public double getEstimatedCost(Point point)
point - public double getEstimatedCost(double[] point)
point - public double getEstimatedCost(double x,
                      double y)
x - y - public Point getEndPoint()
public Point getStartPoint()