Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.spatial.traffic
Interface TrafficIncident


public interface TrafficIncident

Represents a traffic incident.


Field Summary
static java.lang.String ACCIDENT
          Indicates an incident caused by an accident
static java.lang.String BADWEATHER
          Indicates an incident caused by bad weather
static java.lang.String CONGESTION
          Indicates an incident caused by congestion
static java.lang.String CONSTRUCTION
          Indicates an incident caused by construction
static java.lang.String MAJOR
          Indicates an accident of major severety
static java.lang.String MINOR
          Indicates an accident of minor severety
static java.lang.String MODERATE
          Indicates an accident of moderate severety
static java.lang.String SPECIALEVENT
          Indicates an incident caused by a special event

 

Method Summary
 java.lang.String getAdvice()
          Return the advice for the incident.
 java.lang.String getDescription()
          Return the description of the incident.
 java.lang.String getDirection()
          Return the direction of the route on which the incident occurs.
 int getId()
          Return the id of the incident.
 java.lang.String getImpact()
          Return the impact of the incident on traffic.
 Point getIncidentLocation()
          Return the exact location of the incident.
 TrafficRoute getIncidentRoute()
          Return the route on which the incident occurs.
 java.lang.String[] getLocationRange()
          Return the text description of incident location range.
 java.lang.String getSeverity()
          Return the string indicating the severe level of the incident.
 java.util.Calendar[] getTimeRange()
          Return the time range of the incident.
 double getTrafficSpeed()
          Return the traffic speed related with the incident.
 java.lang.String getType()
          Return the type of the incident.

 

Field Detail

ACCIDENT

public static final java.lang.String ACCIDENT
Indicates an incident caused by an accident
See Also:
Constant Field Values

BADWEATHER

public static final java.lang.String BADWEATHER
Indicates an incident caused by bad weather
See Also:
Constant Field Values

CONGESTION

public static final java.lang.String CONGESTION
Indicates an incident caused by congestion
See Also:
Constant Field Values

CONSTRUCTION

public static final java.lang.String CONSTRUCTION
Indicates an incident caused by construction
See Also:
Constant Field Values

MAJOR

public static final java.lang.String MAJOR
Indicates an accident of major severety
See Also:
Constant Field Values

MINOR

public static final java.lang.String MINOR
Indicates an accident of minor severety
See Also:
Constant Field Values

MODERATE

public static final java.lang.String MODERATE
Indicates an accident of moderate severety
See Also:
Constant Field Values

SPECIALEVENT

public static final java.lang.String SPECIALEVENT
Indicates an incident caused by a special event
See Also:
Constant Field Values

Method Detail

getAdvice

public java.lang.String getAdvice()
Return the advice for the incident. If service provider does not provide this inforamtion, the default value is null.

getDescription

public java.lang.String getDescription()
Return the description of the incident. If service provider does not provide this inforamtion, the default value is null.

getDirection

public java.lang.String getDirection()
Return the direction of the route on which the incident occurs. The default value is null. If service provider does not provide this inforamtion, the default value is null.

getId

public int getId()
Return the id of the incident.

getImpact

public java.lang.String getImpact()
Return the impact of the incident on traffic. If service provider does not provide this inforamtion, the default value is null.

getIncidentLocation

public Point getIncidentLocation()
Return the exact location of the incident. The location may be a point or an area which is represented by a point and a radius. See function getRadius() of Point. If service provider does not provide this inforamtion, the default value is null.
Returns:
instance of Point
See Also:
Point

getIncidentRoute

public TrafficRoute getIncidentRoute()
Return the route on which the incident occurs.
Returns:
an instance of TrafficRoute, which is provider dependent. If service provider does not provide this inforamtion, the default value is null.

getLocationRange

public java.lang.String[] getLocationRange()
Return the text description of incident location range.
Returns:
an array of String. The array has two elements if the incident is descibed by both "from" location and "to" location. The array has one element if the incident is described only by one location. If service provider does not provide this inforamtion, the default value is null.

getSeverity

public java.lang.String getSeverity()
Return the string indicating the severe level of the incident. The value is "MINOR", "MODERATE" or "MAJOR". The default value is null.

getTimeRange

public java.util.Calendar[] getTimeRange()
Return the time range of the incident.
Returns:
an array of Calender. Two elements in the array means the incident has both start time and end time. One element in the array means the incident has only start time and no specified end time. If service provider does not provide this inforamtion, the default value is null.

getTrafficSpeed

public double getTrafficSpeed()
Return the traffic speed related with the incident. If service provider does not provide this inforamtion, default value is Double.NAN.

getType

public java.lang.String getType()
Return the type of the incident. The value is "CONGESTION", "CONSTRUCTION", "ACCIDENT", "WEATHER RELATED" or "SPECIAL EVENT". If service provider does not provide this inforamtion, the default value is null.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.