Package xal.smf.impl.profile
Enum Class SignalAttrs.ATTRS
- All Implemented Interfaces:
Serializable
,Comparable<SignalAttrs.ATTRS>
,Constable
- Enclosing class:
- SignalAttrs
Enumeration of the signal properties data fields.
- Since:
- Feb 23, 2010
- 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 Constants -
Method Summary
Modifier and TypeMethodDescriptioncreateDescriptor
(ASignalAttrs annSig) Creates a new SCADA (PV) field descriptor for the signal attribute represented by this enumeration constant.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 givenSignalAttrs
object that this enumeration constant represents.static SignalAttrs.ATTRS
Returns the enum constant of this class with the specified name.static SignalAttrs.ATTRS[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AMP
Signal amplitude -
OFFSET
Additive offset of the signal from zero baseline -
AREA
Area under the signal curve; the integral; the total mass -
MEAN
The statistical average; the center of mass -
STDEV
The standard deviation
-
-
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 attribute 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 left blank or set to the empty string "", the method will throw a
NoSuchFieldException
. 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 given signal attribute,
or
null
if field is missing - Since:
- Feb 6, 2013
-
getFieldName
Returns the name of the field in the data structure which corresponds to this enumeration constant.- Returns:
- data structure field name
- Since:
- Nov 13, 2009
-
getFieldValue
Using reflection, we return the value of the field that this enumeration constant represents, within the given data structure.- Parameters:
data
- data structure having field corresponding to this constant- Returns:
- value of the given data structure's field
- Since:
- Apr 22, 2010
-
setFieldValue
Using reflection, we set the field value of the givenSignalAttrs
object that this enumeration constant represents. The value of that field is thedouble
valued field provided in the arguments.- Parameters:
attrs
- data structure to receive new field valuedblVal
- new value of that field- Since:
- Apr 22, 2010
-