Enum EventImportance
- java.lang.Object
-
- java.lang.Enum<EventImportance>
-
- edu.wpi.first.wpilibj.shuffleboard.EventImportance
-
- All Implemented Interfaces:
Serializable
,Comparable<EventImportance>
public enum EventImportance extends Enum<EventImportance>
The importance of an event marker in Shuffleboard. The exact meaning of each importance level is up for interpretation on a team-to-team basis, but users should follow the general guidelines of the various importance levels. The examples given are for reference and may be ignored or considered to be more or less important from team to team.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description kCritical
A critically important event such as a brownout, component failure, or software deadlock.kHigh
A high-importance event such as scoring a game piece.kLow
A low importance event such as acquisition of a game piece.kNormal
A "normal" importance event, such as a transition from autonomous mode to teleoperated control.kTrivial
A trivial event such as a change in command state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSimpleName()
static EventImportance
valueOf(String name)
Returns the enum constant of this type with the specified name.static EventImportance[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kTrivial
public static final EventImportance kTrivial
A trivial event such as a change in command state.
-
kLow
public static final EventImportance kLow
A low importance event such as acquisition of a game piece.
-
kNormal
public static final EventImportance kNormal
A "normal" importance event, such as a transition from autonomous mode to teleoperated control.
-
kHigh
public static final EventImportance kHigh
A high-importance event such as scoring a game piece.
-
kCritical
public static final EventImportance kCritical
A critically important event such as a brownout, component failure, or software deadlock.
-
-
Method Detail
-
values
public static EventImportance[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EventImportance c : EventImportance.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventImportance valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getSimpleName
public String getSimpleName()
-
-