Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)

B28401-02


oracle.spatial.network.lod
Interface LinkCostCalculator

All Known Implementing Classes:
DummyLinkCostCalculator

public interface LinkCostCalculator

This interface defines the method supported by a link cost calculator.

Since:
11gR1

Method Summary
 double getLinkCost(LogicalLink link, long fromNodeId)
          Computes the cost of the specified link.
 boolean requiresUserData()
          Returns true if calculating link cost requires user data information.

 

Method Detail

getLinkCost

double getLinkCost(LogicalLink link,
                   long fromNodeId)
Computes the cost of the specified link.
Parameters:
link - a standalone logical link
fromNodeId - 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.
Returns:
link cost

requiresUserData

boolean requiresUserData()
Returns true if calculating link cost requires user data information.
Returns:
true if calculating link cost requires user data information, false otherwise.

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)

B28401-02


Copyright © 2007, 2008, Oracle. All Rights Reserved.