public class WarningEvent
extends java.lang.Object
The WarningEvent is the result of a message evaluation.
| Modifier and Type | Class and Description |
|---|---|
static class |
WarningEvent.WarningType
The
WarningType defines the type of a WarningEvent. |
| Constructor and Description |
|---|
WarningEvent(WarningEvent.WarningType type)
Constructs a
WarningEvent which is provided to the WDWClientCallback.onWarningReceived(WarningEvent). |
| Modifier and Type | Method and Description |
|---|---|
WarningEvent.WarningType |
getCurrentWarningType()
Returns the currentWarningType
|
java.lang.Float |
getDistance()
Returns the distance of your position to the
WarningEvent |
void |
setDistance(java.lang.Float distance)
Sets the distance of your position to the
WarningEvent |
void |
setWarningType(WarningEvent.WarningType type)
Sets the type
|
java.lang.String |
toString() |
public WarningEvent(WarningEvent.WarningType type)
WarningEvent which is provided to the WDWClientCallback.onWarningReceived(WarningEvent).type - represents one of the three different WarningEvent.WarningType.public WarningEvent.WarningType getCurrentWarningType()
WarningEvent as WarningEvent.WarningType.setWarningType(WarningType)public java.lang.Float getDistance()
WarningEventWarningEvent as Float.setDistance(Float)public void setDistance(java.lang.Float distance)
WarningEventdistance - set the distance to the WarningEvent.getDistance()public void setWarningType(WarningEvent.WarningType type)
type - set the type of the current WarningEventgetCurrentWarningType()public java.lang.String toString()
toString in class java.lang.Object