Package xal.smf.impl.profile
Class SignalAttrSet
java.lang.Object
xal.smf.impl.profile.SignalAttrSet
- All Implemented Interfaces:
DataListener
- Direct Known Subclasses:
WireHarp.FitAttrSet
,WireScanner.DblGaussFitAttrSet
,WireScanner.GaussFitAttrSet
,WireScanner.StatisticalAttrSet
Data structure containing the signal properties of the the profile data sets
acquired from a wire profile device.
Ported from XAL on Jul 15, 2014.
· Jonathan M. Freed
- Since:
- Feb 23, 2010
- Author:
- Christopher K. Allen
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Create a newProfileAttrSet
object from the annotation information in the class type.protected
Create a new, initializedProfileAttrSet
object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
average
(SignalAttrSet setAvg, double dblWtFac) Averages all the signal attributes in the signal attributes set using the given weighting factor.Label used for parameter set identification.getDia()
Returns the set of all SCADA field descriptors describing the data acquisition channels.getHor()
Returns the signal attributes of this set corresponding to the give profile angle.getVer()
void
setSignalAttrs
(ProfileDevice.ANGLE angle, SignalAttrs attrSignal) Sets the signal attribute for the given measurement angle to the given signal attribute object.void
update
(DataAdaptor daptSrc) Load the contents of this signal traits set from the persistent store behind theDataListener
interface.void
write
(DataAdaptor adaptor) Write out the contents of this signal traits set to the given data store.
-
Constructor Details
-
SignalAttrSet
protected SignalAttrSet()Create a newProfileAttrSet
object from the annotation information in the class type.- Since:
- Feb 25, 2010
-
SignalAttrSet
Create a new, initializedProfileAttrSet
object.- Parameters:
ws
- hardware device containing initialization data.- Throws:
ConnectionException
- unable to connect to a parameter read back channelGetException
- general CA GET exception while fetch field value- Since:
- Feb 25, 2010
-
-
Method Details
-
getHor
-
getVer
-
getDia
-
getFieldDescriptors
Returns the set of all SCADA field descriptors describing the data acquisition channels. Since this is an active data structure these channels are used internally to populate the data fields, which is profile data taken from the hardware.
This will work. If the child class has been annotated byASignal.ASet
theSignal
attributes will be connected in the zero-argument constructor.- Returns:
- set of all channel field descriptors used by this data structure
- Since:
- Mar 15, 2011
-
setSignalAttrs
Sets the signal attribute for the given measurement angle to the given signal attribute object.- Parameters:
angle
- measurement angle of the modified signal attributesattrSignal
- new signal attributes for the given measurement angle- Since:
- Apr 23, 2014
-
getSignalAttrs
Returns the signal attributes of this set corresponding to the give profile angle.- Parameters:
angle
- measurement angle of the desired signal properties- Returns:
- signal properties corresponding to the given angle
- Since:
- Apr 23, 2014
-
average
Averages all the signal attributes in the signal attributes set using the given weighting factor. SeeSignal
for additional information.SignalAttrs#average(Signal, double)
- Parameters:
setAvg
- signal set to average into this onedblWtFac
- averaging magnitude λ ∈ [0,1]- Throws:
IllegalArgumentException
- the provided signal is not the same size as this signal- Since:
- May 1, 2014
-
dataLabel
Label used for parameter set identification.- Specified by:
dataLabel
in interfaceDataListener
- Returns:
- string label (identifier) for parameter set
- Since:
- Mar 4, 2010
- See Also:
-
update
Load the contents of this signal traits set from the persistent store behind theDataListener
interface.- Specified by:
update
in interfaceDataListener
- Parameters:
daptSrc
- data source- Since:
- Mar 4, 2010
- See Also:
-
write
Write out the contents of this signal traits set to the given data store.- Specified by:
write
in interfaceDataListener
- Parameters:
adaptor
- data store exposingDataListener
interface- Since:
- Mar 4, 2010
- See Also:
-