Class AbstractController

java.lang.Object
org.scictrl.csshell.epics.server.application.control.AbstractController

public abstract class AbstractController extends Object

Abstract AbstractController class.

Author:
igor@scictrl.com
  • Field Details

    • seeds

      protected List<ProbePoint> seeds
      Algorithm seed values.
    • points

      protected List<ProbePoint> points
      Probe points.
    • inputMin

      protected double inputMin
      Input minimum allowed value.
    • inputMax

      protected double inputMax
      Input maximum allowed value.
    • inputPrecision

      protected double inputPrecision
      Input value precision.
  • Constructor Details

    • AbstractController

      public AbstractController()

      Constructor for AbstractController.

  • Method Details

    • sortByInp

      public static final List<ProbePoint> sortByInp(List<ProbePoint> points)

      sortByInp.

      Parameters:
      points - a List object
      Returns:
      a List object
    • 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 double
      max - a double
      inputPrecision - a double
      outputPrecision - a double
    • setSeeds

      public void setSeeds(ProbePoint... seeds)

      Setter for the field seeds.

      Parameters:
      seeds - a ProbePoint object
    • getSate

      public Optimizer.State 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

      public void setPoints(ProbePoint[] inputs)

      Setter for the field points.

      Parameters:
      inputs - an array of ProbePoint objects
    • setBest

      public void setBest(ProbePoint best)

      Setter for the field best.

      Parameters:
      best - a ProbePoint object
    • getBest

      public ProbePoint getBest()

      Getter for the field best.

      Returns:
      a ProbePoint object
    • takeMeasurements

      protected abstract boolean takeMeasurements(ProbePoint[] points)

      takeMeasurements.

      Parameters:
      points - an array of ProbePoint objects
      Returns:
      a boolean
    • normalize

      protected void normalize(ProbePoint[] points)

      normalize.

      Parameters:
      points - an array of ProbePoint objects
    • getMeasurements

      public Map<Double,ProbePoint> getMeasurements()

      Getter for the field measurements.

      Returns:
      a Map object