Package swervelib.telemetry
Enum Class Alert.AlertType
- All Implemented Interfaces:
Serializable
,Comparable<Alert.AlertType>
,Constable
- Enclosing class:
- Alert
Represents an alert's level of urgency.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionHigh priority alert - displayed first on the dashboard with a red "X" symbol.High priority alert - displayed first on the dashboard with a red "X" symbol.Low priority alert - displayed last on the dashboard with a green "i" symbol.Medium priority alert - displayed second on the dashboard with a yellow "!" symbol.Medium priority alert - displayed second on the dashboard with a yellow "!" symbol. -
Method Summary
Modifier and TypeMethodDescriptionstatic Alert.AlertType
Returns the enum constant of this class with the specified name.static Alert.AlertType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR
High priority alert - displayed first on the dashboard with a red "X" symbol. Use this type for problems which will seriously affect the robot's functionality and thus require immediate attention. -
ERROR_TRACE
High priority alert - displayed first on the dashboard with a red "X" symbol. Use this type for problems which will seriously affect the robot's functionality and thus require immediate attention. Trace printed to driver station console. -
WARNING
Medium priority alert - displayed second on the dashboard with a yellow "!" symbol. Use this type for problems which could affect the robot's functionality but do not necessarily require immediate attention. -
WARNING_TRACE
Medium priority alert - displayed second on the dashboard with a yellow "!" symbol. Use this type for problems which could affect the robot's functionality but do not necessarily require immediate attention. Trace printed to driver station console. -
INFO
Low priority alert - displayed last on the dashboard with a green "i" symbol. Use this type for problems which are unlikely to affect the robot's functionality, or any other alerts which do not fall under "ERROR" or "WARNING".
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-