public interface ISeverity
The severity code is usually meant to indicate if the process variable that provided a value was 'ok', or in various states of warning or error.
Different implementations might have more or fewer warning and error states. To allow the implementation of generic tools, we define generic states 'OK', 'Minor', 'Major' and 'Invalid' as follows:
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasValue() |
boolean |
isInvalid() |
boolean |
isMajor() |
boolean |
isMinor() |
boolean |
isOK() |
String |
toString() |
String toString()
boolean isOK()
true if this severity is in the 'OK' category.boolean isMinor()
true if this severity is in the 'Minor' category.boolean isMajor()
true if this severity is in the 'Major' category.boolean isInvalid()
true if this severity is in the 'Invalid' category.boolean hasValue()
true if the associated value is meaningful, false if the value
represents for example a 'disconnected' state and thus has no numeric value.Copyright © 2023 European Spallation Source. All rights reserved.