public static enum SignalAttrs.ATTRS extends java.lang.Enum<SignalAttrs.ATTRS>
Enum Constant and Description |
---|
AMP
Signal amplitude
|
AREA
Area under the signal curve; the integral; the total mass
|
MEAN
The statistical average; the center of mass
|
OFFSET
Additive offset of the signal from zero baseline
|
STDEV
The standard deviation
|
Modifier and Type | Method and Description |
---|---|
ScadaFieldDescriptor |
createDescriptor(ASignalAttrs annSig)
Creates a new SCADA (PV) field descriptor for the signal attribute represented by
this enumeration constant.
|
java.lang.String |
getFieldName()
Returns the name of the field in the data structure
which corresponds to this enumeration constant.
|
double |
getFieldValue(SignalAttrs data)
Using reflection, we return the value of the field that this
enumeration constant represents, within the given data structure.
|
double |
setFieldValue(SignalAttrs attrs,
double dblVal)
Using reflection, we set the field value of the given
SignalAttrs
object that this enumeration constant represents. |
static SignalAttrs.ATTRS |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SignalAttrs.ATTRS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SignalAttrs.ATTRS AMP
public static final SignalAttrs.ATTRS OFFSET
public static final SignalAttrs.ATTRS AREA
public static final SignalAttrs.ATTRS MEAN
public static final SignalAttrs.ATTRS STDEV
public static SignalAttrs.ATTRS[] values()
for (SignalAttrs.ATTRS c : SignalAttrs.ATTRS.values()) System.out.println(c);
public static SignalAttrs.ATTRS 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(ASignalAttrs annSig)
Creates a new SCADA (PV) field descriptor for the signal attribute represented by this enumeration constant. The data to create the field descriptor is taken from the provided annotation.
NoSuchFieldException
.
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 field is missingpublic java.lang.String getFieldName()
public double getFieldValue(SignalAttrs data)
data
- data structure having field corresponding to this constantpublic double setFieldValue(SignalAttrs attrs, double dblVal)
SignalAttrs
object that this enumeration constant represents. The value of that field
is the double
valued field provided in the arguments.attrs
- data structure to receive new field valuedblVal
- new value of that field