Class OrbitImpl

  • All Implemented Interfaces:
    Orbit

    public class OrbitImpl
    extends java.lang.Object
    implements Orbit
    • Constructor Summary

      Constructors 
      Constructor Description
      OrbitImpl()
      the default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addReading​(java.lang.String monitorName, java.util.Map<JMadPlane,​java.lang.Double> values)
      Add a monitor reading to the orbit object.
      java.lang.Integer getMonitorIndex​(java.lang.String monitorName)
      Retrieve the index in the data list for the given monitor.
      java.util.List<java.lang.String> getMonitorNames()  
      java.util.List<java.lang.Double> getValues​(JMadPlane plane)
      Retrieve the measured values for the given plane.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrbitImpl

        public OrbitImpl()
        the default constructor
    • Method Detail

      • addReading

        public void addReading​(java.lang.String monitorName,
                               java.util.Map<JMadPlane,​java.lang.Double> values)
        Add a monitor reading to the orbit object. The monitor name will be stored in upper case in the orbit object.
        Parameters:
        monitorName - the name of the monitor
        values - the [plane, value] mapping for the monitor reading
      • getMonitorNames

        public java.util.List<java.lang.String> getMonitorNames()
        Specified by:
        getMonitorNames in interface Orbit
        Returns:
        the list of monitor names defined for this orbit. the monitor names are in upper case in the orbit object.
      • getValues

        public java.util.List<java.lang.Double> getValues​(JMadPlane plane)
        Description copied from interface: Orbit
        Retrieve the measured values for the given plane.
        Specified by:
        getValues in interface Orbit
        Parameters:
        plane - the JMadPlane to get the values for
        Returns:
        the list of values
      • getMonitorIndex

        public java.lang.Integer getMonitorIndex​(java.lang.String monitorName)
        Description copied from interface: Orbit
        Retrieve the index in the data list for the given monitor. The monitor name will be cast to upper case.
        Specified by:
        getMonitorIndex in interface Orbit
        Parameters:
        monitorName - the name of the monitor to get the data index for
        Returns:
        the index in the value list