Package org.eso.ias.types
Enum Class OperationalMode
- All Implemented Interfaces:
Serializable
,Comparable<OperationalMode>
,Constable
The operational mode of a monitor point value
- Author:
- acaproni
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionShutting downOnly partially operationalInitialization on goingMaintenanceDevice malfunctioningFully operationalShut downStarting upUnknown state -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationalMode
getModeFromInputs
(Iterable<OperationalMode> modesOfInputs) Get a OperationalMode from the modes if they agree or UNKNOWN This method is an helper to provide the mode of the output depending of the many inputs of the TF.static OperationalMode
getModeFromInputs
(Iterable<OperationalMode> modesOfInputs, OperationalMode fallbackMode) Get the OperationalMode from the modes if they agree or returns the passed fallbackMode.static OperationalMode
Returns the enum constant of this class with the specified name.static OperationalMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLOSING
Shutting down -
DEGRADED
Only partially operational -
INITIALIZATION
Initialization on going -
MAINTENANCE
Maintenance -
OPERATIONAL
Fully operational -
SHUTTEDDOWN
Shut down -
STARTUP
Starting up -
UNKNOWN
Unknown state -
MALFUNCTIONING
Device malfunctioning
-
-
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
-
getModeFromInputs
public static OperationalMode getModeFromInputs(Iterable<OperationalMode> modesOfInputs, OperationalMode fallbackMode) Get the OperationalMode from the modes if they agree or returns the passed fallbackMode. This method is an helper to provide the mode of the output depending of the many inputs of the TF. If there is only one input or the modes of the inputs are all the same than that mode is returned. Otherwise the default is returned.- Parameters:
modesOfInputs
- the modes of the inputs of the TFfallbackMode
- the mode to return if the modes of the inputs disagree- Returns:
- the OperationalMode from the modes if they agree; returns the passed fallbackMode otherwise
- See Also:
-
getModeFromInputs
Get a OperationalMode from the modes if they agree or UNKNOWN This method is an helper to provide the mode of the output depending of the many inputs of the TF. If there is only one input or the modes of the inputs are all the same than that mode is returned. Otherwise the default is returned.- Parameters:
modesOfInputs
- the modes of the inputs of the TF- Returns:
- the OperationalMode from the modes if they agree; otherwise UNKNOWN
- See Also:
-