public abstract class Incident extends Object 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) |
double |
getBearingAngle(Location userLocation,
double currentHeading)
Gets the bearing from the specified location and heading to the incident.
|
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.
|
double |
getDistance(GeoPoint from)
Returns the distance to the incident location from the specified point.
|
abstract double |
getDistanceKM()
Gets the distance value that was previously set.
|
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.
|
abstract double |
getLatitude()
Gets the latitude of the incident.
|
GeoPoint |
getLocation()
Gets the geographical location of the incident.
|
abstract double |
getLongitude()
Gets the longitude 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).
|
void |
setDistance(GeoPoint from)
Setting the distance to the incident location from the
GeoPoint provided. |
String |
toString() |
writeToParcel
public abstract double getDistanceKM()
public final double getDistance(GeoPoint from)
from
- The point to calculate the distance fromUserPreferences.getSettingUnits()
)public final void setDistance(GeoPoint from)
GeoPoint
provided.from
- The point to calculate and set the distance from for the current instance.public abstract long getId()
public abstract int getVersion()
public abstract Incident.IncidentType getType()
public abstract Integer getEventCode()
public abstract Incident.IncidentSeverity getSeverity()
public abstract double getLatitude()
public abstract double getLongitude()
public final GeoPoint getLocation()
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 double getBearingAngle(Location userLocation, double currentHeading)
userLocation
- The user's location.currentHeading
- The user's current heading.public final int describeContents()
describeContents
in interface Parcelable
Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.