Package xal.smf.impl
Class WireHarp.DataFit
java.lang.Object
xal.smf.impl.profile.SignalSet
xal.smf.impl.WireHarp.DataFit
- All Implemented Interfaces:
DataListener
- Enclosing class:
- WireHarp
@ASet(sigHor=@ASignal(hndPosRb="DatHorFitPositions",hndValRb="DatHorFitSignal"),
sigVer=@ASignal(hndPosRb="DatVerFitPositions",hndValRb="DatVerFitSignal"),
sigDia=@ASignal(hndPosRb="DatDiaFitPositions",hndValRb="DatDiaFitSignal"))
public static class WireHarp.DataFit
extends SignalSet
Structure for maintaining a WireHarp profile data fits. The
instances of this data structure contains the fits to the current profile
data as computed by the harp device controller. The fit data is acquired
in the same manner as the actual measurement data, specifically through
the SCADA mechanism of .
ScadaRecord
The data structure is derived from the SignalSet base class
which does all the work. The fit data for each plane is available through
the attributes of type in the
SignalWireHarp.SignalSet base class. The PV channels for the fit
data are identified with the annotation
which tells the base class how to connect the ASignalSet
attributes.
Signal
- Since:
- Feb 13, 2013
- Author:
- Christopher K. Allen
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDataFit()Creates a new, empty instance ofDataFit.Creates a new instance ofDataFitand initializes the signal values by acquiring data from the given device.DataFit(DataAdaptor daSrc) Creates a new instance ofDataFitinitialized with the data provided by the given data source. -
Method Summary
Modifier and TypeMethodDescriptionstatic WireHarp.DataFitConvenience method for retrieving a new, initialized measurement set acquired from the given device.Methods inherited from class xal.smf.impl.profile.SignalSet
average, dataLabel, getDia, getFieldDescriptorList, getFieldDescriptors, getHor, getSignal, getVer, loadHardwareValues, setSignal, toString, update, write
-
Constructor Details
-
DataFit
Creates a new, empty instance ofDataFit.- Throws:
ScadaAnnotationException- this class is not annotated withASignal.ASet, or the annotation is corrupt- Since:
- Feb 12, 2013
-
DataFit
Creates a new instance ofDataFitinitialized with the data provided by the given data source.- Parameters:
daSrc- measurement data source presentingDataAdaptorinterface- Throws:
IllegalAccessException- if an underlyingSignalfield is inaccessible.ScadaAnnotationException- theADaqProfileannotations are incompleteIllegalArgumentException- general field incompatibility exception- Since:
- Feb 12, 2013
-
DataFit
public DataFit(WireHarp smfHarp) throws ScadaAnnotationException, ConnectionException, GetException, BadStructException Creates a new instance ofDataFitand initializes the signal values by acquiring data from the given device.- Parameters:
smfHarp- data acquisition device- Throws:
BadStructException- the DAQ data structure and DAQ channels are incompatible, bad definitionScadaAnnotationException- theADaqProfileannotations are incompleteConnectionException- unable to connect to a parameter read back channelGetException- general CA GET exception while fetch field value- Since:
- Feb 12, 2013
-
-
Method Details
-
aquire
public static WireHarp.DataFit aquire(WireHarp smfHarp) throws ConnectionException, GetException, ScadaAnnotationException, BadStructException Convenience method for retrieving a new, initialized measurement set acquired from the given device.- Parameters:
smfHarp- measurement device- Returns:
- newly acquired data set from the given device
- Throws:
ConnectionException- unable to connect data read back channelGetException- general CA GET exception while fetch field valueScadaAnnotationException- theADaqProfileannotations are incompleteBadStructException- the DAQ data structure and DAQ channels are incompatible, bad definition- Since:
- Nov 14, 2009
-