Package xal.smf.impl.profile
Enum Class Signal.FIELD
- All Implemented Interfaces:
Serializable
,Comparable<Signal.FIELD>
,Constable
- Enclosing class:
- Signal
Field names of the
class. These are needed
for construction of PV field descriptors for the classes aggregating
Signal
and the Signal
annotation which identifies them.
ASignalSet.ASet
- Since:
- Feb 4, 2013
- Author:
- Christopher K. Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis is the enumeration constant for the
field.Signal.cnt
This is the enumeration constant for the
field.Signal.navg
This is the enumeration constant for the
field.Signal.nvar
This is the enumeration constant for the
field.Signal.pos
This is the enumeration constant for the
field.Signal.val
-
Method Summary
Modifier and TypeMethodDescriptioncreateDescriptor
(ASignal annSig) Creates a new SCADA (PV) field descriptor for the signal field represented by this enumeration constant.static Signal.FIELD
Returns the enum constant of this class with the specified name.static Signal.FIELD[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CNT
This is the enumeration constant for the
field.Signal.cnt
-
POS
This is the enumeration constant for the
field.Signal.pos
-
VAL
This is the enumeration constant for the
field.Signal.val
-
NAVG
This is the enumeration constant for the
field.Signal.navg
-
NVAR
This is the enumeration constant for the
field.Signal.nvar
-
-
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
-
createDescriptor
Creates a new SCADA (PV) field descriptor for the signal field represented by this enumeration constant. The data to create the field descriptor is taken from the provided annotation.
NOTE:
· If the annotation field corresponding to this enumeration is set to the empty string "", the method will return a
null
value. Since it is not necessary for all handles to be specified this is not necessarily a failure condition.- Parameters:
annSig
- the annotation from which we are extracting the parameters- Returns:
- A new SCADA field descriptor for the the field of this
enumeration (from given signal annotation), or
null
if the given annotation does not contain the PV signal names - Throws:
ScadaAnnotationException
- general error with argument annSig, ill defined- Since:
- Feb 6, 2013
-