public abstract class Incident extends Bearing implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
Incident.Community
Represents the community that reports an incident, including the
contributor and level of accuracy.
|
static class |
Incident.Contributor
Represents information about an incident reporter.
|
static class |
Incident.DelayImpact
Represents information on how an event is expected to delay travel times.
|
static class |
Incident.IncidentSeverity
An Enum that describes the severity level of an
Incident . |
static class |
Incident.IncidentType
An enum that describes the type of an
Incident . |
static class |
Incident.ParameterizedDescription
Represents a detailed incident description.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object obj) |
abstract Incident.Community |
getCommunity()
Get community information for who reported this incident, if it was
community-reported.
|
abstract Incident.DelayImpact |
getDelayImpact()
Gets information on how much the incident will delay travel times.
|
String |
getDescription()
Gets a textual description for an incident.
|
abstract Date |
getEndTime()
Gets the time when the incident ends.
|
abstract Integer |
getEventCode()
Gets the AlertC event code associated with the type of incident.
|
abstract String |
getFullDescription()
Gets a longer textual description of the incident.
|
abstract GeoPoint |
getHead()
Gets the location of the farthest point on the road where the incident
starts.
|
abstract long |
getId()
Gets the INRIX ID for the incident.
|
abstract List<GeoPoint> |
getLastDetourPoints()
Gets the locations of the last detour points to use to avoid the
incident.
|
GeoPoint |
getLocation()
Gets the geographical location of the incident.
|
abstract Incident.ParameterizedDescription |
getParameterizedDescription()
Gets the detailed information about the event specified by the AlertC
event code.
|
abstract Incident.IncidentSeverity |
getSeverity()
Gets the severity of the incident.
|
abstract String |
getShortDescription()
Gets a short textual description of the incident.
|
abstract String |
getSource()
Gets the source of the incident information.
|
abstract Date |
getStartTime()
Gets the time when the incident starts.
|
abstract List<GeoPoint> |
getTails()
Gets the locations of the points behind the head where the incident ends.
|
abstract Incident.IncidentType |
getType()
Gets the incident type.
|
abstract int |
getVersion()
Gets the version for the incident.
|
int |
hashCode() |
abstract boolean |
isImpacting()
Gets whether the incident is impacting traffic.
|
boolean |
isUgi()
Returns a value indicating if this incident was reported by a community
user (user-generated incident, UGI) or was automatically generated by a
system (automatically-generated incident, AGI).
|
String |
toString() |
getBearingAngle, getDistance, getDistanceKM, getLatitude, getLongitude, setDistance
writeToParcel
public abstract long getId()
public abstract int getVersion()
public abstract Incident.IncidentType getType()
public abstract Integer getEventCode()
public abstract Incident.IncidentSeverity getSeverity()
@NonNull public final GeoPoint getLocation()
getLocation
in class Bearing
public abstract boolean isImpacting()
public abstract Date getStartTime()
public abstract Date getEndTime()
public abstract String getShortDescription()
public abstract String getFullDescription()
public final String getDescription()
null
; otherwise full description or null
.public abstract Incident.ParameterizedDescription getParameterizedDescription()
public abstract Incident.DelayImpact getDelayImpact()
public abstract GeoPoint getHead()
public abstract List<GeoPoint> getTails()
public abstract List<GeoPoint> getLastDetourPoints()
public abstract String getSource()
public abstract Incident.Community getCommunity()
public final boolean isUgi()
public final int describeContents()
describeContents
in interface Parcelable
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.