Class AbstractController
java.lang.Object
org.scictrl.csshell.epics.server.application.control.AbstractController
Abstract AbstractController class.
- Author:
- igor@scictrl.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleInput maximum allowed value.protected doubleInput minimum allowed value.protected doubleInput value precision.protected List<ProbePoint> Probe points.protected List<ProbePoint> Algorithm seed values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()abort.getBest()Getter for the fieldbest.intReturns max iteration steps, if reached, algorithm fails.intReturns measurements count.Getter for the fieldmeasurements.getSate()getSate.intgetSteps()Returns number of executed steps.voidinitialize(double min, double max, double inputPrecision, double outputPrecision) initialize.booleanisAborted.booleanisCacheMeasurements.protected voidnormalize(ProbePoint[] points) normalize.protected voidImplementation class might override this method to be notified on step end.protected voidImplementation class might override this method to be notified on step start.voidsetBest(ProbePoint best) Setter for the fieldbest.voidsetCacheMeasurements(boolean cacheMeasurements) Setter for the fieldcacheMeasurements.voidsetMaxSteps(int maxSteps) Set max iteration steps, if reached, algorithm fails.voidsetPoints(ProbePoint[] inputs) Setter for the fieldpoints.voidsetSeeds(ProbePoint... seeds) Setter for the fieldseeds.static final List<ProbePoint> sortByInp(List<ProbePoint> points) sortByInp.voidstart()start.protected abstract booleantakeMeasurements(ProbePoint[] points) takeMeasurements.
-
Field Details
-
seeds
Algorithm seed values. -
points
Probe points. -
inputMin
protected double inputMinInput minimum allowed value. -
inputMax
protected double inputMaxInput maximum allowed value. -
inputPrecision
protected double inputPrecisionInput value precision.
-
-
Constructor Details
-
AbstractController
public AbstractController()Constructor for AbstractController.
-
-
Method Details
-
sortByInp
sortByInp.
-
getMeasurementCount
public int getMeasurementCount()Returns measurements count.- Returns:
- measurements count
-
getSteps
public int getSteps()Returns number of executed steps.- Returns:
- number of executed steps
-
getMaxSteps
public int getMaxSteps()Returns max iteration steps, if reached, algorithm fails.- Returns:
- max iteration steps
-
setMaxSteps
public void setMaxSteps(int maxSteps) Set max iteration steps, if reached, algorithm fails.- Parameters:
maxSteps- max iteration steps
-
setCacheMeasurements
public void setCacheMeasurements(boolean cacheMeasurements) Setter for the field
cacheMeasurements.- Parameters:
cacheMeasurements- a boolean
-
isCacheMeasurements
public boolean isCacheMeasurements()isCacheMeasurements.
- Returns:
- a boolean
-
initialize
public void initialize(double min, double max, double inputPrecision, double outputPrecision) initialize.
- Parameters:
min- a doublemax- a doubleinputPrecision- a doubleoutputPrecision- a double
-
setSeeds
Setter for the field
seeds.- Parameters:
seeds- aProbePointobject
-
getSate
getSate.
- Returns:
- a
Optimizer.Stateobject
-
abort
public void abort()abort.
-
isAborted
public boolean isAborted()isAborted.
- Returns:
- a boolean
-
start
public void start()start.
-
notifyStepEnd
protected void notifyStepEnd()Implementation class might override this method to be notified on step end. -
notifyStepStart
protected void notifyStepStart()Implementation class might override this method to be notified on step start. -
setPoints
Setter for the field
points.- Parameters:
inputs- an array ofProbePointobjects
-
setBest
Setter for the field
best.- Parameters:
best- aProbePointobject
-
getBest
Getter for the field
best.- Returns:
- a
ProbePointobject
-
takeMeasurements
takeMeasurements.
- Parameters:
points- an array ofProbePointobjects- Returns:
- a boolean
-
normalize
normalize.
- Parameters:
points- an array ofProbePointobjects
-
getMeasurements
Getter for the field
measurements.- Returns:
- a
Mapobject
-