Package cern.accsoft.steering.aloha.calc
Class CalculatorImpl
- java.lang.Object
-
- cern.accsoft.steering.aloha.calc.CalculatorImpl
-
- All Implemented Interfaces:
Calculator
public class CalculatorImpl extends java.lang.Object implements Calculator
The implementation of a class that keeps track of all available Calculators.
-
-
Constructor Summary
Constructors Constructor Description CalculatorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(CalculatorListener listener)voidcalc()performs one step of calculationprotected voidfireChangedCalculatedValues()protected voidfireChangedVariationParameters()Jama.MatrixgetDeltaParameterValues()voidremoveListener(CalculatorListener listener)voidreset()reset the calculationvoidsetAlgorithmManager(AlgorithmManager algorithmManager)the init method used by spring to inject theAlgorithmManagervoidsetIterationManager(IterationManager iterationManager)voidsetSolverManager(SolverManager solverManager)
-
-
-
Method Detail
-
fireChangedCalculatedValues
protected void fireChangedCalculatedValues()
-
fireChangedVariationParameters
protected void fireChangedVariationParameters()
-
addListener
public void addListener(CalculatorListener listener)
- Specified by:
addListenerin interfaceCalculator- Parameters:
listener- the listener to add
-
removeListener
public void removeListener(CalculatorListener listener)
- Specified by:
removeListenerin interfaceCalculator- Parameters:
listener- the listener to remove
-
calc
public void calc() throws CalculatorExceptionDescription copied from interface:Calculatorperforms one step of calculation- Specified by:
calcin interfaceCalculator- Throws:
CalculatorException
-
getDeltaParameterValues
public Jama.Matrix getDeltaParameterValues()
- Specified by:
getDeltaParameterValuesin interfaceCalculator- Returns:
- the change of the parameters during the last calculation
-
reset
public void reset() throws CalculatorExceptionDescription copied from interface:Calculatorreset the calculation- Specified by:
resetin interfaceCalculator- Throws:
CalculatorException
-
setAlgorithmManager
public void setAlgorithmManager(AlgorithmManager algorithmManager)
the init method used by spring to inject theAlgorithmManager- Parameters:
algorithmManager-
-
setSolverManager
public void setSolverManager(SolverManager solverManager)
-
setIterationManager
public void setIterationManager(IterationManager iterationManager)
-
-