Class StepAutomaticOC
java.lang.Object
org.scictrl.mp.orbitcorrect.correction.automatic.AbstractAutomaticOCModel
org.scictrl.mp.orbitcorrect.correction.automatic.StepAutomaticOC
- All Implemented Interfaces:
IAutomaticOCModel
,IConfigurable
Step based automation model. Does predefined steps of selected correction method.
- Author:
- igor@scictrl.com
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
ConstantAOC_MIN_CORRECTOR="aoc.minCorrector"
protected double
If calculated corrector changes in mrad are lower than this, then correction is skipped and goes into relaxation.Fields inherited from class org.scictrl.mp.orbitcorrect.correction.automatic.AbstractAutomaticOCModel
log, name, NOT_READY_ABORT_MESSAGE, NOT_READY_MESSAGE, timestampTimeout
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(org.apache.commons.configuration.Configuration conf) configure.protected boolean
executeCorectionStep
(Orientation ori, AutomaticOrbitCorrectionOperator operator, boolean dryRun) executeCorectionStep.protected void
executeLoop
(AutomaticOrbitCorrectionOperator operator, int count, boolean dryRun) Executes single correction loop, which is doing correcting until no optimization is necessary.protected void
executeLoopStep
(AutomaticOrbitCorrectionOperator operator, int count, boolean dryRun) Implementing method, which executes correction for specified orientation until new rms is not worse or equal.protected void
This method is called once when automatic model is started, implementator migth override this method to add own initialization.void
setMinCorrectorChange
(double ch) Setter for the fieldminCorrectorChange
.protected void
waitForNextLoop
(AutomaticOrbitCorrectionOperator controller) waitForNextLoop.Methods inherited from class org.scictrl.mp.orbitcorrect.correction.automatic.AbstractAutomaticOCModel
executeContinuous, executeSingleLoop, getName, setName, toString
-
Field Details
-
AOC_MIN_CORRECTOR
ConstantAOC_MIN_CORRECTOR="aoc.minCorrector"
- See Also:
-
minCorrectorChange
protected double minCorrectorChangeIf calculated corrector changes in mrad are lower than this, then correction is skipped and goes into relaxation.
-
-
Constructor Details
-
StepAutomaticOC
public StepAutomaticOC()TimeBasedAutomaticOC constructor comment.
-
-
Method Details
-
executeLoopStep
protected void executeLoopStep(AutomaticOrbitCorrectionOperator operator, int count, boolean dryRun) Implementing method, which executes correction for specified orientation until new rms is not worse or equal.- Parameters:
operator
- the operator for this processcount
- controls how deep this recursion goes. If less then 0, then there is no limit, if more than 0, then can go deeper for given count.dryRun
- a boolean
-
executeCorectionStep
protected boolean executeCorectionStep(Orientation ori, AutomaticOrbitCorrectionOperator operator, boolean dryRun) executeCorectionStep.
- Parameters:
ori
- aOrientation
objectoperator
- aAutomaticOrbitCorrectionOperator
objectdryRun
- a boolean- Returns:
- a boolean
-
executeLoop
Executes single correction loop, which is doing correcting until no optimization is necessary. Creation date: (09.04.2001 16:55:55)- Specified by:
executeLoop
in classAbstractAutomaticOCModel
- Parameters:
operator
- the operator visitorcount
- a intdryRun
- a boolean
-
prepareOnStart
This method is called once when automatic model is started, implementator migth override this method to add own initialization.- Overrides:
prepareOnStart
in classAbstractAutomaticOCModel
- Parameters:
operator
- aAutomaticOrbitCorrectionOperator
object
-
setMinCorrectorChange
public void setMinCorrectorChange(double ch) Setter for the field
minCorrectorChange
.- Parameters:
ch
- a double
-
configure
public void configure(org.apache.commons.configuration.Configuration conf) configure.
- Specified by:
configure
in interfaceIConfigurable
- Overrides:
configure
in classAbstractAutomaticOCModel
- Parameters:
conf
- aConfiguration
object
-
waitForNextLoop
waitForNextLoop.
- Specified by:
waitForNextLoop
in classAbstractAutomaticOCModel
- Parameters:
controller
- aAutomaticOrbitCorrectionOperator
object
-