Class DispersionDataImpl
- java.lang.Object
-
- cern.accsoft.steering.aloha.meas.data.AbstractDynamicData
-
- cern.accsoft.steering.aloha.plugin.disp.meas.data.DispersionDataImpl
-
- All Implemented Interfaces:
BeanAware,MachineElementsManagerAware,Data,DynamicData,DispersionData
public class DispersionDataImpl extends AbstractDynamicData implements DispersionData
this is the default class for representing dispersion - data
-
-
Constructor Summary
Constructors Constructor Description DispersionDataImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalc()This method must be implemented by subclasses to calc new values which then can be retrieved.ReadingDatagetReadingData()java.util.List<java.lang.Double>getRms()java.util.List<java.lang.Double>getRms(Plane plane)returns the dispersion-rms values for all active bpms.java.util.List<java.lang.Boolean>getValidity()java.util.List<java.lang.Boolean>getValidity(Plane plane)returns validity values for each monitor of the given planejava.util.List<java.lang.Double>getValues(Plane plane)returns the dispersion-values for each active monitor of the given plane.voidinit()generic init-method.voidsetReadingData(ReadingData readingData)-
Methods inherited from class cern.accsoft.steering.aloha.meas.data.AbstractDynamicData
addListener, ensureUpToDate, getActiveCorrectors, getActiveMonitors, getMachineElementsManager, isDirty, removeListener, setDirty, setMachineElementsManager
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cern.accsoft.steering.aloha.meas.data.DynamicData
addListener, removeListener
-
-
-
-
Method Detail
-
init
public void init() throws InconsistentDataExceptiongeneric init-method.- Throws:
InconsistentDataException
-
getRms
public java.util.List<java.lang.Double> getRms(Plane plane)
Description copied from interface:DispersionDatareturns the dispersion-rms values for all active bpms.- Specified by:
getRmsin interfaceDispersionData- Parameters:
plane- the Plane for which to retrieve the rms-values- Returns:
- the rms-values for each bpm in the active plane.
-
getValues
public java.util.List<java.lang.Double> getValues(Plane plane)
Description copied from interface:DispersionDatareturns the dispersion-values for each active monitor of the given plane.- Specified by:
getValuesin interfaceDispersionData- Parameters:
plane- the plane for which to retrieve the dispersionData- Returns:
- the dispersion-values.
-
getValidity
public java.util.List<java.lang.Boolean> getValidity(Plane plane)
Description copied from interface:DispersionDatareturns validity values for each monitor of the given plane- Specified by:
getValidityin interfaceDispersionData- Parameters:
plane- the plane for which to get the validity- Returns:
- boolean value for each active monitor, true if the value is valid, false if not.
-
getValidity
public java.util.List<java.lang.Boolean> getValidity()
- Specified by:
getValidityin interfaceDispersionData- Returns:
- the validity-values for both planes.
-
getRms
public java.util.List<java.lang.Double> getRms()
- Specified by:
getRmsin interfaceDispersionData- Returns:
- the rms-data for both planes
-
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 classAbstractDynamicData- Throws:
InconsistentDataException
-
setReadingData
public void setReadingData(ReadingData readingData)
- Parameters:
readingData- the readingData to set
-
getReadingData
public ReadingData getReadingData()
- Returns:
- the readingData
-
-