Package csw.alarm.models
Class AlarmType
java.lang.Object
csw.alarm.models.AlarmType
- All Implemented Interfaces:
enumeratum.EnumEntry
,enumeratum.EnumEntry.Lowercase
- Direct Known Subclasses:
AlarmType.Absolute$
,AlarmType.BitPattern$
,AlarmType.Calculated$
,AlarmType.Deviation$
,AlarmType.Discrepancy$
,AlarmType.Instrument$
,AlarmType.RateChange$
,AlarmType.RecipeDriven$
,AlarmType.Safety$
,AlarmType.Statistical$
,AlarmType.System$
public abstract class AlarmType
extends Object
implements enumeratum.EnumEntry, enumeratum.EnumEntry.Lowercase
Represents the category of the Alarm. The type of an alarm is configured in the alarm config file which will be fixed
for it's entire life span.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
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) name()
The name of the AlarmType e.g.static scala.collection.immutable.IndexedSeq<AlarmType>
values()
Returns a sequence of all alarm types e.g.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface enumeratum.EnumEntry
enumeratum$EnumEntry$$stableEntryName
Methods inherited from interface enumeratum.EnumEntry.Lowercase
entryName, enumeratum$EnumEntry$Lowercase$$stableEntryName
-
Constructor Details
-
AlarmType
public AlarmType()
-
-
Method Details
-
namesToValuesMap
-
lowerCaseNamesToValuesMap
-
upperCaseNameValuesToMap
-
valuesToIndex
-
values
Returns a sequence of all alarm types e.g. Absolute, BitPattern, Calculated etc.- 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
-
name
The name of the AlarmType e.g. forAbsolute
type of alarms, the name will be represented asabsolute
- Returns:
- (undocumented)
-