Package org.scictrl.csshell
Enum Class Status.State
- All Implemented Interfaces:
Serializable
,Comparable<Status.State>
,Constable
- Enclosing class:
Status
State
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRemote value has reached alarm thresholdConnection was closed and destroyedConnection is established.Connection failed while establishingConnection was never established.We might not have valid remote valueConnection currently not available, but was connected erlierNormal situation, no alarms or erorsThere is no status information.Remote value has reached warning threshold -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Returns status code.Returns descriptionboolean
isSet
(int i) Returnstrue
if bit is setint
set
(int i) Sets bitsint
unset
(int i) Flips off bits agains status codestatic Status.State
Returns the enum constant of this class with the specified name.static Status.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
There is no status information. -
INITIAL
Connection was never established. -
CONNECTED
Connection is established. -
FAILED
Connection failed while establishing -
LOST
Connection currently not available, but was connected erlier -
CLOSED
Connection was closed and destroyed -
WARNING
Remote value has reached warning threshold -
ALARM
Remote value has reached alarm threshold -
INVALID
We might not have valid remote value -
NORMAL
Normal situation, no alarms or erors
-
-
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
-
getCode
public int getCode()Returns status code.- Returns:
- status code
-
getDescription
Returns description- Returns:
- description
-
unset
public int unset(int i) Flips off bits agains status code- Parameters:
i
- bits to flip- Returns:
- result
-
set
public int set(int i) Sets bits- Parameters:
i
- bits to set- Returns:
- result
-
isSet
public boolean isSet(int i) Returnstrue
if bit is set- Parameters:
i
- bit- Returns:
true
if bit is set
-