Class Correction

java.lang.Object
org.scictrl.mp.orbitcorrect.correction.Correction

public final class Correction extends Object
Class holding correction information. It is result of correction calculation and it is applied to the beam by the OrbitCorrectionController.
Author:
igor@scictrl.com
  • Constructor Details

    • Correction

      public Correction(ElementList<AbstractCorrector> corr, RFGenerator rf, double[] correction, Orientation ori, double scale, int eigenvaluesUsed, double[] eigenvalues)
      Constructor
      Parameters:
      corr - a ElementList object
      rf - a RFGenerator object
      correction - an array of
      invalid reference
      double
      objects
      ori - a Orientation object
      scale - a double
      eigenvaluesUsed - a int
      eigenvalues - an array of
      invalid reference
      double
      objects
  • Method Details

    • getEigenvectorsUsed

      public int getEigenvectorsUsed()

      Getter for the field eigenvectorsUsed.

      Returns:
      a int
    • getMaxScaledCorrection

      public double getMaxScaledCorrection()
      Maximal absolute correction value in this correction array.
      Returns:
      a double
    • getOrientation

      public Orientation getOrientation()

      getOrientation.

      Returns:
      a Orientation object
    • getTarget

      public AbstractDataBushElement getTarget(int i)

      getTarget.

      Parameters:
      i - a int
      Returns:
      a AbstractDataBushElement object
    • getCorrection

      public double[] getCorrection()

      Getter for the field correction.

      Returns:
      double[][]
    • getEigenvalues

      public double[] getEigenvalues()

      Getter for the field eigenvalues.

      Returns:
      an array of
      invalid reference
      double
      objects
    • getCorrectors

      public ElementList<AbstractCorrector> getCorrectors()

      Getter for the field correctors.

      Returns:
      a ElementList object
    • getRfGenerator

      public RFGenerator getRfGenerator()

      Getter for the field rfGenerator.

      Returns:
      a RFGenerator object
    • getScale

      public double getScale()

      Getter for the field scale.

      Returns:
      a double
    • getScaledCorrection

      public double[] getScaledCorrection()

      Getter for the field scaledCorrection.

      Returns:
      an array of
      invalid reference
      double
      objects
    • getUsedScale

      public double getUsedScale()

      Getter for the field usedScale.

      Returns:
      a double
    • testValuesInRange

      public double testValuesInRange()

      testValuesInRange.

      Returns:
      a double
    • print

      public void print(PrintWriter pw)

      print.

      Parameters:
      pw - a PrintWriter object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isNaN

      public boolean isNaN()

      isNaN.

      Returns:
      a boolean