Package org.eso.ias.types
Enum Class IasValidity
- All Implemented Interfaces:
Serializable
,Comparable<IasValidity>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe value has been provided in time and the operator can trust what the IAS showsThe values has not been produced in time either by the monitored system or due to network problems or any other reason: what the IAS hows can be misaligned with the actual information -
Field Summary
Modifier and TypeFieldDescriptionfinal int
The reliability factor gives a measure of how reliable is a validity. -
Method Summary
Modifier and TypeMethodDescriptionstatic IasValidity
Returns the enum constant of this class with the specified name.static IasValidity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RELIABLE
The value has been provided in time and the operator can trust what the IAS shows -
UNRELIABLE
The values has not been produced in time either by the monitored system or due to network problems or any other reason: what the IAS hows can be misaligned with the actual information
-
-
Field Details
-
reliabilityFactor
public final int reliabilityFactorThe reliability factor gives a measure of how reliable is a validity. The greater the reliablity factor, the better. Implementation note: having an integer here is not very useful with only 2 possible values for the IASValidity but it could be important in future if we wish to distinguish between more cases and it offers implicitly an order.
-
-
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
-