Enum Class Signal
- All Implemented Interfaces:
Serializable
,Comparable<Signal>
,Constable
SCP Signals.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The type of signal, determined by how it is transmitted.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTells apps to continue from pause.Tells apps to exit.The system is initialising after boot.Tells apps to pause.The system is powering down.Tells apps to start.The system is ceasing to run user apps.Tells apps to advance from the SYNC0 state.Tells apps to advance from the SYNC1 state.Used for clock synchronisation?For application use.For application use.For application use.For application use. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Signal.Type
The "type" of the signal.final byte
The value used for the signal. -
Method Summary
-
Enum Constant Details
-
INITIALISE
The system is initialising after boot. -
POWER_DOWN
The system is powering down. -
STOP
The system is ceasing to run user apps. -
START
Tells apps to start. -
SYNC0
Tells apps to advance from the SYNC0 state. -
SYNC1
Tells apps to advance from the SYNC1 state. -
PAUSE
Tells apps to pause. -
CONTINUE
Tells apps to continue from pause. -
EXIT
Tells apps to exit. -
TIMER
Used for clock synchronisation? -
USER_0
For application use. -
USER_1
For application use. -
USER_2
For application use. -
USER_3
For application use.
-
-
Field Details
-
value
public final byte valueThe value used for the signal. -
type
The "type" of the signal.
-
-
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
-
get
Convert a byte to a signal value.- Parameters:
value
- The value to decode.- Returns:
- The decoded value.
- Throws:
NullPointerException
- If the value is unknown.
-