routing
Class DecisionPoint
java.lang.Object
routing.DecisionPoint
public class DecisionPoint
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
heuristicCost
private double heuristicCost
pathCost
private double pathCost
edges
private java.util.HashSet<Edge> edges
id
private long id
xCoord
private double xCoord
yCoord
private double yCoord
hints
private java.util.ArrayList<java.lang.String> hints
routeComplexity
private double routeComplexity
- The route complexity: 0 - low complexiy 1 - high complexity
DecisionPoint
public DecisionPoint(long id,
double x,
double y)
- Parameters:
coord
- coord2
- id
- edges
-
addEdge
public void addEdge(Edge edge)
getEdges
public java.util.HashSet<Edge> getEdges()
getHints
public java.util.ArrayList<java.lang.String> getHints()
- Returns:
- Returns the hints.
setHints
public void setHints(java.util.ArrayList<java.lang.String> hints)
- Parameters:
hints
- The hints to set.
getHeuristicCost
public double getHeuristicCost()
- Returns:
- Returns the cost.
getPathCost
public double getPathCost()
getId
public long getId()
- Returns:
- Returns the id.
getXCoord
public double getXCoord()
- Returns:
- Returns the xCoord.
getYCoord
public double getYCoord()
- Returns:
- Returns the yCoord.
setHeuristicCost
public void setHeuristicCost(double cost)
- Parameters:
cost
- The cost to set.
setPathCost
public void setPathCost(double cost)
getRouteComplexity
public double getRouteComplexity()
setRouteComplexity
public void setRouteComplexity(double routeComplexity)
equals
public boolean equals(java.lang.Object obj)
- Deep, not shallow, equals.
- Overrides:
equals
in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)