Class KickResponseDataImpl
- java.lang.Object
-
- cern.accsoft.steering.aloha.meas.data.AbstractDynamicData
-
- cern.accsoft.steering.aloha.plugin.kickresp.meas.data.KickResponseDataImpl
-
- All Implemented Interfaces:
BeanAware,MachineElementsManagerAware,Data,DynamicData,KickConfiguration,KickResponseData
public class KickResponseDataImpl extends AbstractDynamicData implements KickResponseData
this is the basic implementation of the data of a kick-response-measurement.
-
-
Constructor Summary
Constructors Constructor Description KickResponseDataImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDataMinus(CorrectorKickData data)voidaddDataPlus(CorrectorKickData data)voidcalc()This method must be implemented by subclasses to calc new values which then can be retrieved.voiddecouple()sets the elements of the response-matrix, which correspond to different planes, to zero.java.lang.DoublegetCorrectorKick(Corrector corrector)CorrectorKickDatagetCorrectorKickData(Corrector corrector, cern.accsoft.steering.jmad.tools.response.DeflectionSign sign)retrieves the corrector kick data, which was used to create the response matrix for one corrector.java.util.Map<java.lang.String,CorrectorKickData>getCorrectorKickDataMinus()java.util.Map<java.lang.String,CorrectorKickData>getCorrectorKickDataPlus()Jama.MatrixgetRelativeRmsValues()Jama.MatrixgetResponseMatrix()TrajectoryDatagetStabilityData()doublegetToModelConversionFactor()Jama.MatrixgetTrajectoryMatrix(Plane plane, cern.accsoft.steering.jmad.tools.response.DeflectionSign sign)cern.accsoft.steering.util.TMatrix<java.lang.Boolean>getTrajectoryValidity(Plane plane, cern.accsoft.steering.jmad.tools.response.DeflectionSign sign)cern.accsoft.steering.util.TMatrix<java.lang.Boolean>getValidityMatrix()voidinit()voidremoveDataMinus(java.lang.String correctorKey)voidremoveDataPlus(java.lang.String correctorKey)voidsetKickResponseMeasurement(KickResponseMeasurement kickResponseMeasurement)voidsetToModelConversionFactor(double toModelConversionFactor)-
Methods inherited from class cern.accsoft.steering.aloha.meas.data.AbstractDynamicData
addListener, ensureUpToDate, getActiveCorrectors, getActiveMonitors, getMachineElementsManager, isDirty, removeListener, setDirty, setMachineElementsManager
-
-
-
-
Method Detail
-
init
public void init() throws InconsistentDataException- Throws:
InconsistentDataException
-
getResponseMatrix
public Jama.Matrix getResponseMatrix()
- Specified by:
getResponseMatrixin interfaceKickResponseData- Returns:
- the responding response-matrix corresponding to the actually active correctors/monitors. (Calculates prior to return, if it is not consistent with the actual selected monitors/correctors)
-
calc
public void calc() throws InconsistentDataExceptionDescription copied from class:AbstractDynamicDataThis method must be implemented by subclasses to calc new values which then can be retrieved.- Specified by:
calcin interfaceKickResponseData- Specified by:
calcin classAbstractDynamicData- Throws:
InconsistentDataException
-
getTrajectoryValidity
public cern.accsoft.steering.util.TMatrix<java.lang.Boolean> getTrajectoryValidity(Plane plane, cern.accsoft.steering.jmad.tools.response.DeflectionSign sign)
- Specified by:
getTrajectoryValidityin interfaceKickResponseData
-
getTrajectoryMatrix
public Jama.Matrix getTrajectoryMatrix(Plane plane, cern.accsoft.steering.jmad.tools.response.DeflectionSign sign)
- Specified by:
getTrajectoryMatrixin interfaceKickResponseData
-
decouple
public void decouple()
Description copied from interface:KickResponseDatasets the elements of the response-matrix, which correspond to different planes, to zero.- Specified by:
decouplein interfaceKickResponseData
-
getValidityMatrix
public cern.accsoft.steering.util.TMatrix<java.lang.Boolean> getValidityMatrix()
- Specified by:
getValidityMatrixin interfaceKickResponseData- Returns:
- the validity-matrix, which indicates, which entries in the response-matrix are valid, and which are not.
-
addDataPlus
public void addDataPlus(CorrectorKickData data)
-
addDataMinus
public void addDataMinus(CorrectorKickData data)
-
removeDataPlus
public void removeDataPlus(java.lang.String correctorKey)
-
removeDataMinus
public void removeDataMinus(java.lang.String correctorKey)
-
getCorrectorKickDataPlus
public final java.util.Map<java.lang.String,CorrectorKickData> getCorrectorKickDataPlus()
- Returns:
- the correctorKickDataPlus
-
getCorrectorKickDataMinus
public final java.util.Map<java.lang.String,CorrectorKickData> getCorrectorKickDataMinus()
- Returns:
- the correctorKickDataMinus
-
setToModelConversionFactor
public void setToModelConversionFactor(double toModelConversionFactor)
- Parameters:
toModelConversionFactor- the toModelConversionFactor to set
-
getToModelConversionFactor
public double getToModelConversionFactor()
- Returns:
- the toModelConversionFactor
-
getCorrectorKickData
public CorrectorKickData getCorrectorKickData(Corrector corrector, cern.accsoft.steering.jmad.tools.response.DeflectionSign sign)
Description copied from interface:KickResponseDataretrieves the corrector kick data, which was used to create the response matrix for one corrector.- Specified by:
getCorrectorKickDatain interfaceKickResponseData- Parameters:
corrector- the corrector for which to retrieve the datasign- the sign of the deflection (plus/minus)
-
getRelativeRmsValues
public Jama.Matrix getRelativeRmsValues()
- Specified by:
getRelativeRmsValuesin interfaceKickResponseData- Returns:
- the rms-values relative to the corrector-kicks
-
getCorrectorKick
public java.lang.Double getCorrectorKick(Corrector corrector)
- Specified by:
getCorrectorKickin interfaceKickConfiguration
-
setKickResponseMeasurement
public void setKickResponseMeasurement(KickResponseMeasurement kickResponseMeasurement)
-
getStabilityData
public TrajectoryData getStabilityData()
- Specified by:
getStabilityDatain interfaceKickResponseData- Returns:
- the stability-data
-
-