Enum Class CPUState
- All Implemented Interfaces:
Serializable
,Comparable<CPUState>
,Constable
SARK CPU States.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCore is doing something withc_main()
entry point.Core is dead.Core has finished.Core is idle.Core is preparing to enter service.Core is paused.Core is powered down.Core is ready for service.Core has had an RTE and not yet been reset.Core is running user code.Core is waiting forSignal.SYNC0
.Core is waiting forSignal.SYNC1
.Core was unresponsive and so was shutdown by the watchdog timer. -
Field Summary
Fields -
Method Summary
-
Enum Constant Details
-
DEAD
Core is dead. -
POWERED_DOWN
Core is powered down. -
RUN_TIME_EXCEPTION
Core has had an RTE and not yet been reset. -
WATCHDOG
Core was unresponsive and so was shutdown by the watchdog timer. -
INITIALISING
Core is preparing to enter service. -
READY
Core is ready for service. -
C_MAIN
Core is doing something withc_main()
entry point. -
RUNNING
Core is running user code. -
SYNC0
Core is waiting forSignal.SYNC0
. -
SYNC1
Core is waiting forSignal.SYNC1
. -
PAUSED
Core is paused. -
FINISHED
Core has finished. -
IDLE
Core is idle. User code may be run on it.
-
-
Field Details
-
value
public final int valueThe canonical SARK value for the state.
-
-
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
Get the element for a value.- Parameters:
value
- The value to look up- Returns:
- The enumeration item it represents
-