Class AbstractController
java.lang.Object
org.scictrl.csshell.epics.server.application.control.AbstractController
Abstract AbstractController class.
- Author:
- igor@scictrl.com
-
Field Summary
Modifier and TypeFieldDescriptionprotected double
Input maximum allowed value.protected double
Input minimum allowed value.protected double
Input value precision.protected List
<ProbePoint> Probe points.protected List
<ProbePoint> Algorithm seed values. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
abort.getBest()
Getter for the fieldbest
.int
Returns max iteration steps, if reached, algorithm fails.int
Returns measurements count.Getter for the fieldmeasurements
.getSate()
getSate.int
getSteps()
Returns number of executed steps.void
initialize
(double min, double max, double inputPrecision, double outputPrecision) initialize.boolean
isAborted.boolean
isCacheMeasurements.protected void
normalize
(ProbePoint[] points) normalize.protected void
Implementation class might override this method to be notified on step end.protected void
Implementation class might override this method to be notified on step start.void
setBest
(ProbePoint best) Setter for the fieldbest
.void
setCacheMeasurements
(boolean cacheMeasurements) Setter for the fieldcacheMeasurements
.void
setMaxSteps
(int maxSteps) Set max iteration steps, if reached, algorithm fails.void
setPoints
(ProbePoint[] inputs) Setter for the fieldpoints
.void
setSeeds
(ProbePoint... seeds) Setter for the fieldseeds
.static final List
<ProbePoint> sortByInp
(List<ProbePoint> points) sortByInp.void
start()
start.protected abstract boolean
takeMeasurements
(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
- aProbePoint
object
-
getSate
getSate.
- Returns:
- a
Optimizer.State
object
-
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 ofProbePoint
objects
-
setBest
Setter for the field
best
.- Parameters:
best
- aProbePoint
object
-
getBest
Getter for the field
best
.- Returns:
- a
ProbePoint
object
-
takeMeasurements
takeMeasurements.
- Parameters:
points
- an array ofProbePoint
objects- Returns:
- a boolean
-
normalize
normalize.
- Parameters:
points
- an array ofProbePoint
objects
-
getMeasurements
Getter for the field
measurements
.- Returns:
- a
Map
object
-