Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.spatial
Class RankingByDrivingTime

java.lang.Object
  extended byoracle.panama.spatial.Ranking
      extended byoracle.panama.spatial.RankingByDrivingTime


public class RankingByDrivingTime
extends Ranking

Constructor Summary
RankingByDrivingTime(Point[] locations)
Constructor
RankingByDrivingTime(Point[] locations, double[] times, double[] dist)
Constructor

Method Summary
double[] getDistances()
This returns the driving distances for the ranked points (same sequence as points in point array).
double[] getTimes()
This returns the driving times for the ranked points (same sequence as points in point array).

Methods inherited from class oracle.panama.spatial.Ranking
getRankedPoints, getRankingProvider, setRankingProvider

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

Constructor Detail

RankingByDrivingTime

public RankingByDrivingTime(Point[] locations)
Constructor
Parameters:
locations - the already ranked array of locations

RankingByDrivingTime

public RankingByDrivingTime(Point[] locations,
                            double[] times,
                            double[] dist)
Constructor
Parameters:
locations - the already ranked array of locations
times - the array of driving times in the same order as locations
dist - the array of driving distances in the same order as locations

Method Detail

getDistances

public double[] getDistances()
This returns the driving distances for the ranked points (same sequence as points in point array).
Returns:
An array of doubles representing the driving distances in kilometers. If this information is not available, then null will be returned.

getTimes

public double[] getTimes()
This returns the driving times for the ranked points (same sequence as points in point array).
Returns:
An array of doubles representing the driving times in minutes. If this information is not available, then null will be returned.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.