public class GeodeticCostFunction extends java.lang.Object implements HeuristicCostFunction, XMLConfigurable
| Constructor and Description |
|---|
GeodeticCostFunction() |
GeodeticCostFunction(int userDataCategory,
int geometryUserDataIndex)
Creates a GeodeticCostFunction instance.
|
GeodeticCostFunction(int userDataCategory,
int xCoordUserDataIndex,
int yCoordUserDataIndex)
Creates a GeodeticCostFunction instance.
|
GeodeticCostFunction(int userDataCategory,
int xCoordUserDataIndex,
int yCoordUserDataIndex,
int geometryUserDataIndex)
Creates a GeodeticCostFunction instance.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
setUserData(PointOnNet point,
NetworkExplorer ne) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeuristicCost, getUserDataCategories, setUserDatagetXMLSchema, initpublic GeodeticCostFunction()
public GeodeticCostFunction(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 GeodeticCostFunction(int userDataCategory,
int xCoordUserDataIndex,
int yCoordUserDataIndex)
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 linkpublic GeodeticCostFunction(int userDataCategory,
int geometryUserDataIndex)
userDataCategory - user data categorygeometryUserDataIndex - user date index registered for geometries of the nodes or points on linkpublic 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()
public void setUserData(PointOnNet point, NetworkExplorer ne) throws LODNetworkException
LODNetworkException