Package xal.smf.impl
Class WireHarp.DataRaw
java.lang.Object
xal.smf.impl.profile.SignalSet
xal.smf.impl.WireHarp.DataRaw
- All Implemented Interfaces:
DataListener
- Enclosing class:
- WireHarp
@ASet(sigHor=@ASignal(hndPosRb="DatHorRawPositions",hndValRb="DatHorRawSignal"),
sigVer=@ASignal(hndPosRb="DatVerRawPositions",hndValRb="DatVerRawSignal"),
sigDia=@ASignal(hndPosRb="DatDiaRawPositions",hndValRb="DatDiaRawSignal"))
public static class WireHarp.DataRaw
extends SignalSet
Structure for maintaining a WireHarp
profile data
measurement. Each instance of this data structure contains a snapshot of
the beam profile provided by the wire harp and acquired through the SCADA
mechanism of
.
ScadaRecord
The data structure is derived from the SignalSet
base class
which does all the work. The data from each plane is available through
the attributes of type
in the
WireHarp.Signal
WireHarp.SignalSet
base class. The data acquisition channels
are identified with the annotation
which
tells the base class how to connect the
ASignalSet
attributes.
WireHarp.Signal
- Since:
- Feb 5, 2013
- Author:
- Christopher K. Allen
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDataRaw()
Creates a new, empty instance ofMeasurement
.Creates a new instance ofDataRaw
and initializes the signal values by acquiring data from the given device.DataRaw
(DataAdaptor daSrc) Creates a new instance ofDataRaw
initialized with the data provided by the given data source. -
Method Summary
Modifier and TypeMethodDescriptionstatic WireHarp.DataRaw
Convenience 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
-
DataRaw
Creates a new, empty instance ofMeasurement
.- Throws:
ScadaAnnotationException
- this class is not annotated withASignal.ASet
, or the annotation is corrupt- Since:
- Feb 5, 2013
-
DataRaw
Creates a new instance ofDataRaw
initialized with the data provided by the given data source.- Parameters:
daSrc
- measurement data source presentingDataAdaptor
interface- Throws:
IllegalAccessException
- if an underlyingSignal
field is inaccessible.ScadaAnnotationException
- theADaqProfile
annotations are incompleteIllegalArgumentException
- general field incompatibility exception- Since:
- Feb 12, 2013
-
DataRaw
public DataRaw(WireHarp smfHarp) throws ConnectionException, GetException, ScadaAnnotationException, BadStructException Creates a new instance ofDataRaw
and 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
- theADaqProfile
annotations 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.DataRaw 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
- theADaqProfile
annotations are incompleteBadStructException
- the DAQ data structure and DAQ channels are incompatible, bad definition- Since:
- Nov 14, 2009
-