|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a traffic incident.
Field Summary |
Type | Field |
---|---|
static java.lang.String |
ACCIDENT
|
static java.lang.String |
BADWEATHER
|
static java.lang.String |
CONGESTION
String CONGESTION, CONSTRUCTION, ACCIDENT, BADWEATHER and
SPECIALEVENT are used to descibe incident type. |
static java.lang.String |
CONSTRUCTION
|
static java.lang.String |
MAJOR
|
static java.lang.String |
MINOR
String MINOR, MODERATE and MAJOR
are used to descibe incident severity. |
static java.lang.String |
MODERATE
|
static java.lang.String |
SPECIALEVENT
|
Method Summary |
Type | Method |
---|---|
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 |
public static final java.lang.String CONGESTION
String CONGESTION, CONSTRUCTION, ACCIDENT, BADWEATHER
and
SPECIALEVENT
are used to descibe incident type.public static final java.lang.String CONSTRUCTION
public static final java.lang.String ACCIDENT
public static final java.lang.String BADWEATHER
public static final java.lang.String SPECIALEVENT
public static final java.lang.String MINOR
String MINOR, MODERATE
and MAJOR
are used to descibe incident severity.public static final java.lang.String MODERATE
public static final java.lang.String MAJOR
Method Detail |
public int getId()
public java.lang.String getSeverity()
null
.public java.lang.String getType()
null
.public java.lang.String getDescription()
null
.public java.lang.String getImpact()
null
.public java.lang.String getAdvice()
null
.public TrafficRoute getIncidentRoute()
TrafficRoute
, which is provider dependent.
If service provider does not provide this inforamtion,
the default value is null
.public double getTrafficSpeed()
Double.NAN
.public java.util.Calendar[] getTimeRange()
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
.public Point getIncidentLocation()
getRadius()
of Point
. If service provider does not provide this inforamtion,
the default value is null
.Point
Point
public java.lang.String[] getLocationRange()
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
.public java.lang.String getDirection()
null
. If service provider does not provide this inforamtion,
the default value is null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |