public class EuclideanCostFunction extends java.lang.Object implements HeuristicCostFunction, XMLConfigurable
Constructor and Description |
---|
EuclideanCostFunction(int userDataCategory, int xCoordUserDataIndex, int yCoordUserDataIndex, int geometryUserDataIndex)
Creates a EuclideanCostFunction instance.
|
Modifier and Type | Method and Description |
---|---|
double |
getHeuristicCost(double x1, double y1, double x2, double y2)
The implementation of this abstract method should return the heuristic cost between point (x1, y1) and (x2, y2).
|
double |
getHeuristicCost(HeavyPointOnNet currentPoint, HeavyPointOnNet goalPoint)
Returns the heuristic cost between the current node and the goal node.
|
double |
getHeuristicCost(HeavyPointOnNet currentPoint, LogicalNode goalNode)
Returns the heuristic cost between the current node and the goal node.
|
double |
getHeuristicCost(LogicalNode currentNode, HeavyPointOnNet goalPoint)
Returns the heuristic cost between the current node and the goal node.
|
double |
getHeuristicCost(LogicalNode currentNode, LogicalNode goalNode)
Returns the heuristic cost between the current node and the goal node.
|
int[] |
getUserDataCategories() |
java.lang.String |
getXMLSchema() |
void |
init(org.w3c.dom.Element parameter) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeuristicCost, getUserDataCategories
getXMLSchema, init
public EuclideanCostFunction(int userDataCategory, int xCoordUserDataIndex, int yCoordUserDataIndex, int geometryUserDataIndex)
userDataCategory
- user data categoryxCoordUserDataIndex
- user data index registered for x coordinates of the nodes or points on linkyCoordUserDataIndex
- user data index registered for y coordinates of the nodes or points on linkgeometryUserDataIndex
- user date index registered for geometries of the nodes or points on linkpublic double getHeuristicCost(double x1, double y1, double x2, double y2)
x1
- x coordinate of the current pointy1
- y coordinate of the current pointx2
- x coordinate of the goal pointy2
- y coordinate of the goal pointpublic void init(org.w3c.dom.Element parameter)
public java.lang.String getXMLSchema()
public double getHeuristicCost(HeavyPointOnNet currentPoint, HeavyPointOnNet goalPoint)
currentPoint
- current pointgoalPoint
- goal pointpublic double getHeuristicCost(LogicalNode currentNode, LogicalNode goalNode)
currentNode
- current nodegoalNode
- goal nodepublic double getHeuristicCost(LogicalNode currentNode, HeavyPointOnNet goalPoint)
currentNode
- current nodegoalPoint
- goal pointpublic double getHeuristicCost(HeavyPointOnNet currentPoint, LogicalNode goalNode)
currentPoint
- current pointgoalNode
- goal nodepublic int[] getUserDataCategories()