java.lang.Object
org.scictrl.mp.orbitcorrect.utilities.Orbit

public final class Orbit extends Object
Orbit is class that incapsulates orbit at some timepoint. For execution efficiency it is by design non-modifiable class. Orbit information is provided trough constructor and stored in final arrays and should not be changed afterwards.
Author:
igor@kriznar.com
  • Constructor Details Link icon

    • Orbit Link icon

      public Orbit(ElementList<BPMonitor> bpms, Orbit ref)
      Creates new Orbit object from BPMs and reference.
      Parameters:
      bpms - the orbit provided as BPM objects.
      ref - the reference, can be null.
    • Orbit Link icon

      public Orbit(Orbit raw, Orbit ref)
      Creates new orbit from raw orbit and reference orbit.
      Parameters:
      raw - the raw orbit information
      ref - the reference for the orbit
    • Orbit Link icon

      public Orbit(ElementList<BPMonitor> bpms, double[] x, double[] z)

      Constructor for Orbit.

      Parameters:
      bpms - a ElementList object
      x - an array of
      invalid reference
      double
      objects
      z - an array of
      invalid reference
      double
      objects
  • Method Details Link icon

    • getPositions Link icon

      public double[] getPositions(Orientation ori)

      Getter for the field positions.

      Parameters:
      ori - a Orientation object
      Returns:
      an array of
      invalid reference
      double
      objects
    • getAvg Link icon

      public double getAvg(Orientation ori)

      Getter for the field avg.

      Parameters:
      ori - a Orientation object
      Returns:
      a double
    • getRms Link icon

      public double getRms(Orientation ori)

      Getter for the field rms.

      Parameters:
      ori - a Orientation object
      Returns:
      a double
    • getStd Link icon

      public double getStd(Orientation ori)

      Getter for the field std.

      Parameters:
      ori - a Orientation object
      Returns:
      a double
    • getMax Link icon

      public double getMax(Orientation ori)

      Getter for the field max.

      Parameters:
      ori - a Orientation object
      Returns:
      a double
    • getBPMs Link icon

      public ElementList<BPMonitor> getBPMs()

      getBPMs.

      Returns:
      a ElementList object
    • toStringStatistics Link icon

      public String toStringStatistics()

      toStringStatistics.

      Returns:
      a String object
    • toStringFull Link icon

      public String toStringFull()

      toStringFull.

      Returns:
      a String object
    • printCompact Link icon

      public void printCompact(PrintWriter pw)

      printCompact.

      Parameters:
      pw - a PrintWriter object
    • printCompactStats Link icon

      public void printCompactStats(PrintWriter pw)

      printCompactStats.

      Parameters:
      pw - a PrintWriter object
    • print Link icon

      public void print(PrintWriter pw)

      print.

      Parameters:
      pw - a PrintWriter object
    • getTime Link icon

      public org.scictrl.csshell.Timestamp getTime()

      Getter for the field time.

      Returns:
      a Timestamp object
    • getPosition Link icon

      public double getPosition(Orientation ori, int i)

      getPosition.

      Parameters:
      ori - a Orientation object
      i - a int
      Returns:
      a double
    • getPosition Link icon

      public double getPosition(Orientation ori, String bpm)

      getPosition.

      Parameters:
      ori - a Orientation object
      bpm - a String object
      Returns:
      a double