Skip navigation links

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


oracle.spatial.network.lod
Interface PairwiseCostCalculator

All Known Implementing Classes:
DefaultPairwiseCostCalculator

public interface PairwiseCostCalculator

This interface defines methods to calculate the pairwise costs between two sets of points.

Since:
Oracle Database 11g Release 2 (11.2)

Method Summary
 boolean calculate(PointOnNet[][] startPoints, PointOnNet[][] endPoints, LODNetworkConstraint constraint)
          Computes the pairwise costs between two sets of points.
 Matrix<double[]> getPairwiseCosts()
          Returns the pairwise costs that was computed when calculate was called.
 Matrix<LogicalSubPath> getPairwisePaths()
          Returns the pairwise paths that was computed when calculate was called.

 

Method Detail

calculate

boolean calculate(PointOnNet[][] startPoints,
                  PointOnNet[][] endPoints,
                  LODNetworkConstraint constraint)
                  throws LODNetworkException
Computes the pairwise costs between two sets of points.
Parameters:
startPoints - start point candidates
endPoints - end point candidates
constraint - network constraint
Returns:
true if the pairwise paths are also computed in addition to the pairwise costs; false otherwise
Throws:
LODNetworkException

getPairwisePaths

Matrix<LogicalSubPath> getPairwisePaths()
Returns the pairwise paths that was computed when calculate was called. Returns null if the pairwise paths were not computed.
Returns:

getPairwiseCosts

Matrix<double[]> getPairwiseCosts()
Returns the pairwise costs that was computed when calculate was called. The pairwise costs must have been computed when calculate was called.
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.