Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.spatial.traffic
Interface TrafficReport


public interface TrafficReport

Represent incident based traffic report.

Author:
Yingmei Sun

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

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.

getIncidentNum

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

getIncidents

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

getReportCity

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

getProvider

public Provider getProvider()
Return the service provider.

getDistanceUnit

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

getTimeUnit

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

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.