|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.spatial.network.lod.GeodeticCostFunction
public class GeodeticCostFunction
This class implements the AStar heuristic cost as the 2D geodetic distance in meters between the current node and the goal node.
| Constructor Summary | |
|---|---|
GeodeticCostFunction(int userDataCategory, int xCoordUserDataIndex, int yCoordUserDataIndex, int geometryUserDataIndex)Creates a GeodeticCostFunction instance. |
|
| Method Summary | |
|---|---|
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() |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.spatial.network.lod.HeuristicCostFunction |
|---|
getHeuristicCost, getUserDataCategories |
| Constructor Detail |
|---|
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 link| Method Detail |
|---|
public double getHeuristicCost(HeavyPointOnNet currentPoint,
HeavyPointOnNet goalPoint)
currentPoint - current pointgoalPoint - goal point
public double getHeuristicCost(LogicalNode currentNode,
LogicalNode goalNode)
currentNode - current nodegoalNode - goal node
public double getHeuristicCost(LogicalNode currentNode,
HeavyPointOnNet goalPoint)
currentNode - current nodegoalPoint - goal point
public double getHeuristicCost(HeavyPointOnNet currentPoint,
LogicalNode goalNode)
currentPoint - current pointgoalNode - goal nodepublic int[] getUserDataCategories()
|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||