Class OrbitMonitor

java.lang.Object
org.scictrl.mp.orbitcorrect.utilities.PropertyChangeSupportable
org.scictrl.mp.orbitcorrect.utilities.OrbitMonitor
All Implemented Interfaces:
IBeamTraceProvider

public final class OrbitMonitor extends PropertyChangeSupportable implements IBeamTraceProvider

OrbitMonitor class.

Author:
igor@scictrl.com
  • Field Details

    • PROPERTY_ALL_DATA

      public static final String PROPERTY_ALL_DATA
      Constant PROPERTY_ALL_DATA="ALL_DATA"
      See Also:
    • PROPERTY_BEAM_POSITION

      public static final String PROPERTY_BEAM_POSITION
      Constant PROPERTY_BEAM_POSITION="BEAM_POSITION"
      See Also:
    • PROPERTY_BEAM_TRACE

      public static final String PROPERTY_BEAM_TRACE
      Constant PROPERTY_BEAM_TRACE="BEAM_TRACE"
      See Also:
    • PROPERTY_REFERENCE_ORBIT

      public static final String PROPERTY_REFERENCE_ORBIT
      Constant PROPERTY_REFERENCE_ORBIT="REFERENCE_ORBIT"
      See Also:
    • PROPERTY_SAVED_BEAM_POSITION

      public static final String PROPERTY_SAVED_BEAM_POSITION
      Constant PROPERTY_SAVED_BEAM_POSITION="SAVED_BEAM_POSITION"
      See Also:
    • PROPERTY_BEAM_STATISTICS

      public static final String PROPERTY_BEAM_STATISTICS
      Constant PROPERTY_BEAM_STATISTICS="BEAM_STATISTICS"
      See Also:
  • Constructor Details

    • OrbitMonitor

      public OrbitMonitor()

      Constructor for OrbitMonitor.

  • Method Details

    • loadFromFile

      public static final Orbit loadFromFile(File file, ElementList<BPMonitor> bpms)

      loadFromFile.

      Parameters:
      file - a File object
      bpms - a ElementList object
      Returns:
      a Orbit object
    • initialize

      public void initialize(DataBush db)
      BeamAnalizatorBean constructor comment.
      Parameters:
      db - a DataBush object
    • setBPMs

      public void setBPMs(ElementList<BPMonitor> bpms)

      setBPMs.

      Parameters:
      bpms - a ElementList object
    • getAbsoluteOrbit

      public Orbit getAbsoluteOrbit()

      getAbsoluteOrbit.

      Returns:
      double[][]
    • getUserOrbit

      public Orbit getUserOrbit()

      getUserOrbit.

      Returns:
      double[][]
    • getBeamTrace

      public double[][] getBeamTrace(Orientation orientation)
      Returns beam trace calculation for given orientation
      Specified by:
      getBeamTrace in interface IBeamTraceProvider
      Parameters:
      orientation - a Orientation object
      Returns:
      double[][]
    • isBeamTraceEnabled

      public boolean isBeamTraceEnabled()

      isBeamTraceEnabled.

      Returns:
      boolean
    • isRelativeToReference

      public boolean isRelativeToReference()

      isRelativeToReference.

      Returns:
      boolean
    • printReport

      public String printReport()

      printReport.

      Returns:
      java.lang.String
    • printReport

      public void printReport(PrintWriter p)

      printReport.

      Parameters:
      p - a PrintWriter object
    • updateAll

      protected void updateAll()

      updateAll.

    • saveOrbit

      public void saveOrbit()

      saveOrbit.

    • setBeamTraceEnabled

      public void setBeamTraceEnabled(boolean newBeamTraceEnabled)

      Setter for the field beamTraceEnabled.

      Parameters:
      newBeamTraceEnabled - boolean
    • setExternalReference

      public void setExternalReference(Orbit ref)

      Setter for the field externalReference.

      Parameters:
      ref - a Orbit object
    • setRelativeToReference

      public void setRelativeToReference(org.scictrl.mp.orbitcorrect.utilities.OrbitMonitor.Relative ref)

      setRelativeToReference.

      Parameters:
      ref - a OrbitMonitor.Relative object
    • setSavedAsReference

      public void setSavedAsReference()

      setSavedAsReference.

    • setExternalAsReference

      public void setExternalAsReference()

      setExternalAsReference.

    • setNoReference

      public void setNoReference()

      setNoReference.

    • updateBeam

      public void updateBeam()

      updateBeam.

    • updateBeamTrace

      public void updateBeamTrace()

      updateBeamTrace.