Package com.bosch.wdw
Class WarningEvent
- java.lang.Object
-
- com.bosch.wdw.WarningEvent
-
public class WarningEvent extends java.lang.ObjectThe
WarningEventis the result of a message evaluation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWarningEvent.WarningTypeTheWarningTypedefines the type of aWarningEvent.
-
Constructor Summary
Constructors Constructor Description WarningEvent(WarningEvent.WarningType type)Constructs aWarningEventwhich is provided to theWDWClientCallback.onWarningReceived(WarningEvent).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WarningEvent.WarningTypegetCurrentWarningType()Returns the currentWarningTypejava.lang.FloatgetDistance()Returns the distance of your position to theWarningEventvoidsetDistance(java.lang.Float distance)Sets the distance of your position to theWarningEventvoidsetWarningType(WarningEvent.WarningType type)Sets the typejava.lang.StringtoString()
-
-
-
Constructor Detail
-
WarningEvent
public WarningEvent(WarningEvent.WarningType type)
Constructs aWarningEventwhich is provided to theWDWClientCallback.onWarningReceived(WarningEvent).- Parameters:
type- represents one of the three differentWarningEvent.WarningType.
-
-
Method Detail
-
getCurrentWarningType
public WarningEvent.WarningType getCurrentWarningType()
Returns the currentWarningType- Returns:
- the type of the
WarningEventasWarningEvent.WarningType. - See Also:
setWarningType(WarningType)
-
getDistance
public java.lang.Float getDistance()
Returns the distance of your position to theWarningEvent- Returns:
- distance of your position to the
WarningEventas Float. - See Also:
setDistance(Float)
-
setDistance
public void setDistance(java.lang.Float distance)
Sets the distance of your position to theWarningEvent- Parameters:
distance- set the distance to theWarningEvent.- See Also:
getDistance()
-
setWarningType
public void setWarningType(WarningEvent.WarningType type)
Sets the type- Parameters:
type- set the type of the currentWarningEvent- See Also:
getCurrentWarningType()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-