Class RouteAlert
-
- All Implemented Interfaces:
public abstract class RouteAlertAbstract class that serves as a base for all route alerts.
Available alert types are:
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegeralertTypeprivate final Pointcoordinateprivate final Doubledistanceprivate final RouteAlertGeometryalertGeometry
-
Constructor Summary
Constructors Constructor Description RouteAlert(Integer alertType, Point coordinate, Double distance, RouteAlertGeometry alertGeometry)
-
Method Summary
Modifier and Type Method Description final IntegergetAlertType()final PointgetCoordinate()final DoublegetDistance()final RouteAlertGeometrygetAlertGeometry()Booleanequals(Object other)Indicates whether some other object is "equal to" this one. IntegerhashCode()Returns a hash code value for the object. StringtoString()Returns a string representation of the object.
-
-
-
Constructor Detail
-
RouteAlert
RouteAlert(Integer alertType, Point coordinate, Double distance, RouteAlertGeometry alertGeometry)
- Parameters:
alertType- constant describing the alert type, see RouteAlertType.coordinate- location of the alert or its start point in case it has a lengthdistance- distance to this alert since the start of the routealertGeometry- optional geometry details of the alert if it has a length
-
-
Method Detail
-
getAlertType
final Integer getAlertType()
-
getCoordinate
final Point getCoordinate()
-
getDistance
final Double getDistance()
-
getAlertGeometry
final RouteAlertGeometry getAlertGeometry()
-
-