Package csw.alarm.models
Class AlarmSeverity
java.lang.Object
csw.alarm.models.FullAlarmSeverity
csw.alarm.models.AlarmSeverity
- All Implemented Interfaces:
enumeratum.EnumEntry
- Direct Known Subclasses:
AlarmSeverity.Critical$
,AlarmSeverity.Indeterminate$
,AlarmSeverity.Major$
,AlarmSeverity.Okay$
,AlarmSeverity.Warning$
Represents the alarm severity set by the component developer e.g Okay, Warning, Major, Indeterminate, Critical.
Disconnected is not a part of AlarmSeverity as it is never set by the component developer.
param: level is fundamental in comparing severities
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the critical state of an alarm for e.g.static class
Represents the indeterminate state of an alarm, for e.g.static class
Represents the major state of an alarm for e.g the operator needs to respond to a major alarm within 30 to 60 minutes.static class
Represents the normal operation of the alarmstatic class
Represents the warning state of an alarm for e.g.Nested classes/interfaces inherited from class csw.alarm.models.FullAlarmSeverity
FullAlarmSeverity.Disconnected$
Nested classes/interfaces inherited from interface enumeratum.EnumEntry
enumeratum.EnumEntry.Camelcase, enumeratum.EnumEntry.CapitalDotcase, enumeratum.EnumEntry.CapitalHyphencase, enumeratum.EnumEntry.CapitalSnakecase, enumeratum.EnumEntry.CapitalWords, enumeratum.EnumEntry.Dotcase, enumeratum.EnumEntry.EnumEntryOps<A extends enumeratum.EnumEntry>, enumeratum.EnumEntry.EnumEntryOps$, enumeratum.EnumEntry.Hyphencase, enumeratum.EnumEntry.LowerCamelcase, enumeratum.EnumEntry.Lowercase, enumeratum.EnumEntry.Snakecase, enumeratum.EnumEntry.Uncapitalised, enumeratum.EnumEntry.Uppercase, enumeratum.EnumEntry.UpperDotcase, enumeratum.EnumEntry.UpperHyphencase, enumeratum.EnumEntry.UpperSnakecase, enumeratum.EnumEntry.UpperWords, enumeratum.EnumEntry.Words
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static scala.collection.immutable.Map<String,
A> protected static scala.collection.immutable.IndexedSeq<A>
static int
indexOf
(A member) int
level()
static final scala.collection.immutable.Map<String,
AlarmSeverity> static scala.collection.immutable.Map<String,
AlarmSeverity> static final scala.collection.immutable.Map<String,
AlarmSeverity> static scala.collection.immutable.IndexedSeq<AlarmSeverity>
values()
Returns a sequence of all alarm severity (except Disconnected)static final scala.collection.immutable.Map<AlarmSeverity,
Object> static A
static scala.util.Either<enumeratum.NoSuchMember<A>,
A> withNameEither
(String name) static A
withNameInsensitive
(String name) static scala.util.Either<enumeratum.NoSuchMember<A>,
A> static scala.Option<A>
static A
withNameLowercaseOnly
(String name) static scala.util.Either<enumeratum.NoSuchMember<A>,
A> static scala.Option<A>
static scala.Option<A>
withNameOption
(String name) static A
withNameUppercaseOnly
(String name) static scala.util.Either<enumeratum.NoSuchMember<A>,
A> static scala.Option<A>
Methods inherited from class csw.alarm.models.FullAlarmSeverity
max, name
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface enumeratum.EnumEntry
entryName, enumeratum$EnumEntry$$stableEntryName
-
Constructor Details
-
AlarmSeverity
public AlarmSeverity(int level)
-
-
Method Details
-
namesToValuesMap
-
lowerCaseNamesToValuesMap
public static final scala.collection.immutable.Map<String,AlarmSeverity> lowerCaseNamesToValuesMap() -
upperCaseNameValuesToMap
-
valuesToIndex
-
values
Returns a sequence of all alarm severity (except Disconnected)- Returns:
- (undocumented)
-
extraNamesToValuesMap
-
withName
-
withNameOption
-
withNameEither
-
withNameInsensitive
-
withNameUppercaseOnly
-
withNameLowercaseOnly
-
withNameInsensitiveOption
-
withNameUppercaseOnlyOption
-
withNameLowercaseOnlyOption
-
withNameInsensitiveEither
public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameInsensitiveEither(String name) -
withNameUppercaseOnlyEither
public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameUppercaseOnlyEither(String name) -
withNameLowercaseOnlyEither
public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameLowercaseOnlyEither(String name) -
indexOf
public static int indexOf(A member) -
findValues
protected static scala.collection.immutable.IndexedSeq<A> findValues() -
enumeratum$Enum$$existingEntriesString
-
level
public int level()- Overrides:
level
in classFullAlarmSeverity
-