|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.spatial.network.lod.DummyLinkCostCalculator
public class DummyLinkCostCalculator
This implementation of LinkCostCalculator always returns 0 for link cost. This class is implemented as a singleton.
Method Summary | |
---|---|
double |
getLinkCost(LogicalLink link, long fromNodeId) Computes the cost of the specified link. |
static LinkCostCalculator |
getLinkCostCalculator() |
boolean |
requiresUserData() Returns true if calculating link cost requires user data information. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LinkCostCalculator getLinkCostCalculator()
public double getLinkCost(LogicalLink link, long fromNodeId)
LinkCostCalculator
getLinkCost
in interface LinkCostCalculator
link
- a standalone logical linkfromNodeId
- ID of the node from which the network traverser is traveling from. It is used to indicate travel direction on the link. This ID must be either the start node or end node ID of the link.public boolean requiresUserData()
LinkCostCalculator
requiresUserData
in interface LinkCostCalculator
|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |