Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.spatial.traffic
Interface TrafficReport


public interface TrafficReport

Represent incident based traffic report.


Method Summary
 int getDistanceUnit()
          Return distance unit.
 int getIncidentNum()
          Return the number of incidents in the report.
 TrafficIncident[] getIncidents()
          Return the incidents.
 Provider getProvider()
          Return the service provider.
 City getReportCity()
          Return the reported city.
 java.util.Calendar getReportTime()
          Return the report generated time provided by service providers.
 java.lang.String getTimeUnit()
          Return time unit.

 

Method Detail

getDistanceUnit

public int getDistanceUnit()
Return distance unit. Value is either TrafficReporter.MILES or TrafficReporter.KILOMETERS. The default value is TrafficReporter.MILES.

getIncidentNum

public int getIncidentNum()
Return the number of incidents in the report.

getIncidents

public TrafficIncident[] getIncidents()
Return the incidents.
Returns:
an array of TrafficIncident.

getProvider

public Provider getProvider()
Return the service provider.

getReportCity

public City getReportCity()
Return the reported city.
Returns:
instance of the City.

getReportTime

public java.util.Calendar getReportTime()
Return the report generated time provided by service providers. Return null if the service provide does not provide such information.

getTimeUnit

public java.lang.String getTimeUnit()
Return time unit. The default value is TrafficReporter.MINUTE.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.