Skip navigation links

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

B28401-02


oracle.spatial.network.lod
Class DummyLinkCostCalculator

java.lang.Object
  extended by oracle.spatial.network.lod.DummyLinkCostCalculator

All Implemented Interfaces:
LinkCostCalculator

public class DummyLinkCostCalculator
extends java.lang.Object
implements LinkCostCalculator

This implementation of LinkCostCalculator always returns 0 for link cost. This class is implemented as a singleton.

Since:
11gR2

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

getLinkCostCalculator

public static LinkCostCalculator getLinkCostCalculator()

getLinkCost

public double getLinkCost(LogicalLink link,
                          long fromNodeId)
Description copied from interface: LinkCostCalculator
Computes the cost of the specified link.
Specified by:
getLinkCost in interface LinkCostCalculator
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

public boolean requiresUserData()
Description copied from interface: LinkCostCalculator
Returns true if calculating link cost requires user data information.
Specified by:
requiresUserData in interface LinkCostCalculator
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.