Class ReadingDataImpl
- java.lang.Object
-
- cern.accsoft.steering.util.meas.data.yasp.ReadingDataImpl
-
- All Implemented Interfaces:
MeasuredData<MonitorValue>,ReadingData
- Direct Known Subclasses:
CorrectorKickDataImpl
public class ReadingDataImpl extends java.lang.Object implements ReadingData
this is the basic implementation of theReadingDatainterface.
-
-
Constructor Summary
Constructors Constructor Description ReadingDataImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(CorrectorValue correctorValue)adds a correctorValue to the ReadingDatavoidadd(MonitorValue monitorValue)adds the given monitorValue to the ReadingDataCorrectorValuegetCorrectorValue(java.lang.String key)returns the CorrectorValue for a given key.java.util.Collection<CorrectorValue>getCorrectorValues()java.util.List<CorrectorValue>getCorrectorValues(java.util.List<java.lang.String> correctorNames, Plane plane)collects all corrector Values for the correctors of the given names and planeYaspHeadergetHeader()MonitorValuegetMonitorValue(java.lang.String key)returns the monitor value for a given keyjava.util.Collection<MonitorValue>getMonitorValues()java.util.List<MonitorValue>getMonitorValues(java.util.List<java.lang.String> monitorNames, Plane plane)collects all monitor values for monitors of the given names and planevoidsetHeaderData(YaspHeader header)
-
-
-
Method Detail
-
getCorrectorValue
public CorrectorValue getCorrectorValue(java.lang.String key)
Description copied from interface:ReadingDatareturns the CorrectorValue for a given key.- Specified by:
getCorrectorValuein interfaceReadingData- Returns:
- the
CorrectorValue
-
getCorrectorValues
public java.util.Collection<CorrectorValue> getCorrectorValues()
- Specified by:
getCorrectorValuesin interfaceReadingData- Returns:
- all available correctorValues
-
getMonitorValue
public MonitorValue getMonitorValue(java.lang.String key)
Description copied from interface:MeasuredDatareturns the monitor value for a given key- Specified by:
getMonitorValuein interfaceMeasuredData<MonitorValue>- Returns:
- the
MonitorValue
-
getMonitorValues
public java.util.Collection<MonitorValue> getMonitorValues()
- Specified by:
getMonitorValuesin interfaceMeasuredData<MonitorValue>- Returns:
- all available monitorValues
-
add
public void add(MonitorValue monitorValue)
adds the given monitorValue to the ReadingData- Parameters:
monitorValue- theMonitorValueto add
-
add
public void add(CorrectorValue correctorValue)
adds a correctorValue to the ReadingData- Parameters:
correctorValue-
-
getCorrectorValues
public java.util.List<CorrectorValue> getCorrectorValues(java.util.List<java.lang.String> correctorNames, Plane plane)
Description copied from interface:ReadingDatacollects all corrector Values for the correctors of the given names and plane- Specified by:
getCorrectorValuesin interfaceReadingData- Parameters:
correctorNames- the names of the correctors for which to retrieve the valuesplane- the plane for which toretrieve the values- Returns:
- the corrector-values
-
getMonitorValues
public java.util.List<MonitorValue> getMonitorValues(java.util.List<java.lang.String> monitorNames, Plane plane)
Description copied from interface:ReadingDatacollects all monitor values for monitors of the given names and plane- Specified by:
getMonitorValuesin interfaceReadingData- Parameters:
monitorNames- the names of the monitorsplane- the plane for which to retrieve the values- Returns:
- the corrector-values
-
getHeader
public YaspHeader getHeader()
- Specified by:
getHeaderin interfaceReadingData- Returns:
- the yasp header data in this reading data
-
setHeaderData
public void setHeaderData(YaspHeader header)
-
-