Class IterationDataImpl
- java.lang.Object
-
- cern.accsoft.steering.aloha.calc.iteration.IterationDataImpl
-
- All Implemented Interfaces:
IterationData
- Direct Known Subclasses:
SvdIterationDataImpl
public class IterationDataImpl extends java.lang.Object implements IterationData
The implementation of the data holding info about aloha iterations
-
-
Constructor Summary
Constructors Constructor Description IterationDataImpl(int iterationNumber)the constructor, which enforces to give an interationNumber
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetActiveDifferenceRms()doublegetAllDifferenceRms()java.lang.DoublegetDifferenceRms(SensitivityMatrixContributor contributor)intgetIterationNumber()java.lang.DoublegetValue(VariationParameter parameter)voidsetActiveDifferenceRms(double activeDifferenceRms)voidsetAllDifferenceRms(double allDifferenceRms)voidsetDifferenceRms(SensitivityMatrixContributor contributor, java.lang.Double value)voidstoreValue(VariationParameter parameter)stores the actual value of the parameter.
-
-
-
Method Detail
-
getValue
public java.lang.Double getValue(VariationParameter parameter)
- Specified by:
getValuein interfaceIterationData- Returns:
- the value of the given parameter at the time of this iteration
-
storeValue
public void storeValue(VariationParameter parameter)
Description copied from interface:IterationDatastores the actual value of the parameter.- Specified by:
storeValuein interfaceIterationData- Parameters:
parameter- the parameter whose value to store.
-
getIterationNumber
public int getIterationNumber()
- Specified by:
getIterationNumberin interfaceIterationData- Returns:
- the iteration number for this data
-
getActiveDifferenceRms
public double getActiveDifferenceRms()
- Specified by:
getActiveDifferenceRmsin interfaceIterationData- Returns:
- the rms of the difference vector, including only the active contributors
-
getAllDifferenceRms
public double getAllDifferenceRms()
- Specified by:
getAllDifferenceRmsin interfaceIterationData- Returns:
- the rms of the difference vector, including all contributors (active and inactive ones)
-
getDifferenceRms
public java.lang.Double getDifferenceRms(SensitivityMatrixContributor contributor)
- Specified by:
getDifferenceRmsin interfaceIterationData- Parameters:
contributor- the contributor for which to get the rms- Returns:
- the rms of the difference vector, only for this contributor
-
setDifferenceRms
public void setDifferenceRms(SensitivityMatrixContributor contributor, java.lang.Double value)
-
setAllDifferenceRms
public void setAllDifferenceRms(double allDifferenceRms)
-
setActiveDifferenceRms
public void setActiveDifferenceRms(double activeDifferenceRms)
-
-