Enum Class SCPResult
- All Implemented Interfaces:
Serializable
,Comparable<SCPResult>
,Constable
The SCP Result codes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInvalid arguments.No free shared memory buffers.Bad/invalid command.Bad CPU number.SHM destination dead.Bad packet length.Command completed successfully.Destination busy.No reply to open.Message was rejected.Destination did not respond.Packet transmission failed.Bad port number.No P2P route.Bad checksum.Timeout. -
Field Summary
Fields -
Method Summary
-
Enum Constant Details
-
RC_OK
Command completed successfully. -
RC_LEN
Bad packet length. -
RC_SUM
Bad checksum. -
RC_CMD
Bad/invalid command. -
RC_ARG
Invalid arguments. -
RC_PORT
Bad port number. -
RC_TIMEOUT
Timeout. -
RC_ROUTE
No P2P route. -
RC_CPU
Bad CPU number. -
RC_DEAD
SHM destination dead. -
RC_BUF
No free shared memory buffers. -
RC_P2P_NOREPLY
No reply to open. -
RC_P2P_REJECT
Message was rejected. -
RC_P2P_BUSY
Destination busy. -
RC_P2P_TIMEOUT
Destination did not respond. -
RC_PKT_TX
Packet transmission failed.
-
-
Field Details
-
value
public final short valueThe encoded result value.
-
-
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
Decode a result.- Parameters:
value
- The value to decode- Returns:
- The decoded value, or
null
if unrecognised.
-