public static enum Signal.FIELD extends java.lang.Enum<Signal.FIELD>
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
Enum Constant and Description |
---|
CNT
This is the enumeration constant for the
field. |
NAVG
This is the enumeration constant for the
field. |
NVAR
This is the enumeration constant for the
field. |
POS
This is the enumeration constant for the
field. |
VAL
This is the enumeration constant for the
field. |
Modifier and Type | Method and Description |
---|---|
ScadaFieldDescriptor |
createDescriptor(ASignal annSig)
Creates a new SCADA (PV) field descriptor for the signal field represented by
this enumeration constant.
|
static Signal.FIELD |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Signal.FIELD[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Signal.FIELD CNT
Signal.cnt
field.public static final Signal.FIELD POS
Signal.pos
field.public static final Signal.FIELD VAL
Signal.val
field.public static final Signal.FIELD NAVG
Signal.navg
field.public static final Signal.FIELD NVAR
Signal.nvar
field.public static Signal.FIELD[] values()
for (Signal.FIELD c : Signal.FIELD.values()) System.out.println(c);
public static Signal.FIELD valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic ScadaFieldDescriptor createDescriptor(ASignal annSig) throws ScadaAnnotationException
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.
null
value.
Since it is not necessary for all handles to be specified this is not necessarily a failure
condition.
annSig
- the annotation from which we are extracting the parametersnull
if the given annotation does not contain the PV signal namesScadaAnnotationException
- general error with argument annSig, ill defined