Class CalcActionHandler
- java.lang.Object
-
- cern.accsoft.steering.aloha.gui.menus.CalcActionHandler
-
public class CalcActionHandler extends java.lang.ObjectThis singleton class handles actions related to calculations.
-
-
Constructor Summary
Constructors Constructor Description CalcActionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalc(int iterations)perform the given steps of calculationCalculatorgetCalculator()javax.swing.JPanelgetMainPanel()voidreset()recalc measurement and reset the calculatorvoidresetModels()reset the modelvoidsetCalculator(Calculator calculatorManager)voidsetMainPanel(javax.swing.JPanel mainPanel)voidsetModelDelegateManager(ModelDelegateManager modelDelegateManager)
-
-
-
Method Detail
-
calc
public void calc(int iterations)
perform the given steps of calculation- Parameters:
iterations- the number of iterations to calculate
-
reset
public void reset()
recalc measurement and reset the calculator
-
resetModels
public void resetModels()
reset the model
-
setMainPanel
public void setMainPanel(javax.swing.JPanel mainPanel)
- Parameters:
mainPanel- the mainPanel to set
-
getMainPanel
public javax.swing.JPanel getMainPanel()
- Returns:
- the mainPanel
-
setModelDelegateManager
public void setModelDelegateManager(ModelDelegateManager modelDelegateManager)
-
setCalculator
public void setCalculator(Calculator calculatorManager)
-
getCalculator
public Calculator getCalculator()
-
-