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.ParameterizedDescription
Parcelable.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.
|
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.
|
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.
|
String |
getTTSDescription()
Gets a text-to-speech description of the incident.
|
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, getCommunity, getDescription, getLocation, getSource, isUgi
getBearingAngle, getDistance, getDistanceKM, getLatitude, getLongitude, setDistance
describeContents
public 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 Parcelable
public long getId()
public int getVersion()
getVersion
in class Incident
public final Incident.IncidentType getType()
Incident
public final Incident.IncidentSeverity getSeverity()
Incident
getSeverity
in class Incident
public XDIncident.Status getStatus()
XDIncident.Status
of the current XDIncident
.public String getFullDescription()
getFullDescription
in class Incident
public String getShortDescription()
getShortDescription
in class Incident
public String getTTSDescription()
public Incident.ParameterizedDescription getParameterizedDescription()
getParameterizedDescription
in class Incident
public Incident.DelayImpact getDelayImpact()
getDelayImpact
in class Incident
public GeoPoint getHead()
public List<GeoPoint> getTails()
public List<GeoPoint> getLastDetourPoints()
getLastDetourPoints
in class Incident
public Date getStartTime()
getStartTime
in class Incident
public Date getEndTime()
getEndTime
in class Incident
public boolean isImpacting()
isImpacting
in class Incident
public Integer getEventCode()
getEventCode
in class Incident
public List<Integer> getInrixEventCodes()
public String getScheduleDescription()
public XDIncident.RecurringSchedule getRecurringSchedule()
XDIncident.RecurringSchedule
public XDIncident.XDLocation getXDLocation()
XDIncident
.XDIncident.XDLocation
.Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.