Skip navigation links

Oracle® Spatial Java API Reference
11g Release 2 (11.2)
E11829-02


oracle.spatial.network.lod
Class DefaultPairwiseCostCalculator

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

All Implemented Interfaces:
PairwiseCostCalculator

public class DefaultPairwiseCostCalculator
extends java.lang.Object
implements PairwiseCostCalculator

This is the default pairwise cost calculator. It calculates the pairwise costs using the input pairwise shortest path algorithm.

Since:
Oracle Database 11g Release 2 (11.2)

Constructor Summary
DefaultPairwiseCostCalculator(oracle.spatial.network.lod.PairwiseShortestPaths pwsp)
          Constructs a default pairwise cost calculator.

 

Method Summary
 boolean calculate(PointOnNet[][] startPoints, PointOnNet[][] endPoints, LODNetworkConstraint constraint)
          Computes the pairwise shorest path and the pairwise costs using the pairwise shortest paths algorithm passed in to the constructor.
 Matrix<double[]> getPairwiseCosts()
          Returns the pairwise costs.
 Matrix<LogicalSubPath> getPairwisePaths()
          Returns the pairwise shortest paths.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DefaultPairwiseCostCalculator

public DefaultPairwiseCostCalculator(oracle.spatial.network.lod.PairwiseShortestPaths pwsp)
Constructs a default pairwise cost calculator.
Parameters:
pwsp - pairwise shortest path algorithm.

Method Detail

calculate

public boolean calculate(PointOnNet[][] startPoints,
                         PointOnNet[][] endPoints,
                         LODNetworkConstraint constraint)
                  throws LODNetworkException
Computes the pairwise shorest path and the pairwise costs using the pairwise shortest paths algorithm passed in to the constructor.
Specified by:
calculate in interface PairwiseCostCalculator
Parameters:
startPoints -
endPoints -
constraint -
Returns:
Throws:
LODNetworkException

getPairwisePaths

public Matrix<LogicalSubPath> getPairwisePaths()
Returns the pairwise shortest paths.
Specified by:
getPairwisePaths in interface PairwiseCostCalculator
Returns:

getPairwiseCosts

public Matrix<double[]> getPairwiseCosts()
Returns the pairwise costs.
Specified by:
getPairwiseCosts in interface PairwiseCostCalculator
Returns:

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 2 (11.2)
E11829-02


Copyright © 2007, 2011, Oracle and/or its affiliates. All Rights Reserved.