public class XDIncident extends Incident implements Parcelable
| Modifier and Type | Class and Description |
|---|---|
static class |
XDIncident.IncidentDirection
An Enum that describes the direction of the XDIncident in terms of cardinal directions.
|
static class |
XDIncident.RecurringSchedule
Data structure that describes the RecurringSchedule for a XDIncident.
|
static class |
XDIncident.Status
An Enum that describes the status of a XDIncident.
|
static class |
XDIncident.XDLocation
Location data for an
XDIncident. |
Incident.Community, Incident.Contributor, Incident.DelayImpact, Incident.IncidentSeverity, Incident.IncidentType, Incident.ParameterizedDescriptionParcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<XDIncident> |
CREATOR
Parcelable creator for this type.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
XDIncident(Incident incident)
Initializes an instance of
XDIncident from Incident. |
XDIncident(Parcel in)
Create an instance of
XDIncident from a Parcel. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Incident.DelayImpact |
getDelayImpact()
Gets information on how much the incident will delay travel times.
|
double |
getDistanceKM()
Gets the distance value that was previously set.
|
Date |
getEndTime()
Gets the time when the incident ends.
|
Integer |
getEventCode()
Gets the AlertC event code associated with the type of incident.
|
String |
getFullDescription()
Gets a longer textual description of the incident.
|
GeoPoint |
getHead()
Gets the location of the farthest point on the road where the incident
starts.
|
long |
getId()
Gets the INRIX ID for the incident.
|
List<Integer> |
getInrixEventCodes()
Gets the list of all INRIX event codes.
|
List<GeoPoint> |
getLastDetourPoints()
Gets the locations of the last detour points to use to avoid the
incident.
|
double |
getLatitude()
Gets the latitude of the incident.
|
double |
getLongitude()
Gets the longitude of the incident.
|
Incident.ParameterizedDescription |
getParameterizedDescription()
Gets the detailed information about the event specified by the AlertC
event code.
|
XDIncident.RecurringSchedule |
getRecurringSchedule()
Get the recurrence schedule for a XDIncident.
|
String |
getScheduleDescription()
Get the description for the XDIncident.
|
Incident.IncidentSeverity |
getSeverity()
Gets the severity of the incident.
|
String |
getShortDescription()
Gets a short textual description of the incident.
|
Date |
getStartTime()
Gets the time when the incident starts.
|
XDIncident.Status |
getStatus()
Get the
XDIncident.Status of the current XDIncident. |
List<GeoPoint> |
getTails()
Gets the locations of the points behind the head where the incident ends.
|
Incident.IncidentType |
getType()
Gets the incident type.
|
int |
getVersion()
Gets the version for the incident.
|
XDIncident.XDLocation |
getXDLocation()
Get the extended location details for the
XDIncident. |
int |
hashCode() |
boolean |
isImpacting()
Gets whether the incident is impacting traffic.
|
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
describeContents, getBearingAngle, getCommunity, getDescription, getDistance, getLocation, getSource, isUgi, setDistancedescribeContentspublic static final Parcelable.Creator<XDIncident> CREATOR
public XDIncident(Incident incident)
XDIncident from Incident.incident - Instance of Incident.public XDIncident(Parcel in)
XDIncident from a Parcel.in - The Parcel.public void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelablepublic final double getDistanceKM()
getDistanceKM in class Incidentpublic long getId()
public int getVersion()
getVersion in class Incidentpublic final Incident.IncidentType getType()
Incidentpublic final Incident.IncidentSeverity getSeverity()
IncidentgetSeverity in class Incidentpublic XDIncident.Status getStatus()
XDIncident.Status of the current XDIncident.public double getLatitude()
getLatitude in class Incidentpublic double getLongitude()
getLongitude in class Incidentpublic String getFullDescription()
getFullDescription in class Incidentpublic String getShortDescription()
getShortDescription in class Incidentpublic Incident.ParameterizedDescription getParameterizedDescription()
getParameterizedDescription in class Incidentpublic Incident.DelayImpact getDelayImpact()
getDelayImpact in class Incidentpublic GeoPoint getHead()
public List<GeoPoint> getTails()
public List<GeoPoint> getLastDetourPoints()
getLastDetourPoints in class Incidentpublic Date getStartTime()
getStartTime in class Incidentpublic Date getEndTime()
getEndTime in class Incidentpublic boolean isImpacting()
isImpacting in class Incidentpublic Integer getEventCode()
getEventCode in class Incidentpublic List<Integer> getInrixEventCodes()
public String getScheduleDescription()
public XDIncident.RecurringSchedule getRecurringSchedule()
XDIncident.RecurringSchedulepublic XDIncident.XDLocation getXDLocation()
XDIncident.XDIncident.XDLocation.Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.