Class ResponseRequestImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCorrector​(java.lang.String correctorName, java.lang.Double strengthValue, JMadPlane plane)  
      void addMonitor​(java.lang.String monitorName, JMadPlane plane)  
      void addMonitorRegexp​(java.lang.String regex)  
      void clearCorrectors()  
      void clearMonitors()  
      java.util.List<java.lang.String> getCorrectorNames()
      This method must return the names of the correctors which shall be used for calculating the response request.
      java.util.List<JMadPlane> getCorrectorPlanes()
      must return the planes in which the correctors shall be kicked.
      java.util.List<java.lang.String> getMonitorNames()
      The monitor names.
      java.util.List<JMadPlane> getMonitorPlanes()
      must return a plane for each of monitors, at which the position shall be taken to calc the response matrix element.
      java.util.List<java.lang.String> getMonitorRegexps()
      must return regular expressions representing the monitors.
      java.util.List<java.lang.Double> getStrengthValues()
      This method must return the strengthes which shall be used at the corrector for calculating the response at the according correctors.
      • Methods inherited from class java.lang.Object

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

      • ResponseRequestImpl

        public ResponseRequestImpl()
    • Method Detail

      • addCorrector

        public void addCorrector​(java.lang.String correctorName,
                                 java.lang.Double strengthValue,
                                 JMadPlane plane)
      • addMonitor

        public void addMonitor​(java.lang.String monitorName,
                               JMadPlane plane)
      • clearCorrectors

        public void clearCorrectors()
      • clearMonitors

        public void clearMonitors()
      • addMonitorRegexp

        public void addMonitorRegexp​(java.lang.String regex)
      • getCorrectorNames

        public java.util.List<java.lang.String> getCorrectorNames()
        Description copied from interface: ResponseRequest
        This method must return the names of the correctors which shall be used for calculating the response request.
        Specified by:
        getCorrectorNames in interface ResponseRequest
        Returns:
        The names of the correctors to use.
      • getStrengthValues

        public java.util.List<java.lang.Double> getStrengthValues()
        Description copied from interface: ResponseRequest
        This method must return the strengthes which shall be used at the corrector for calculating the response at the according correctors. The given strength will be applied once positive and once negative. The Response-matrix element is then the difference of the two trajectories devided by twice the strength.
        Specified by:
        getStrengthValues in interface ResponseRequest
        Returns:
        the strengths to use
      • getMonitorNames

        public java.util.List<java.lang.String> getMonitorNames()
        Description copied from interface: ResponseRequest
        The monitor names.
        Specified by:
        getMonitorNames in interface ResponseRequest
        Returns:
        the names of the monitors at which positions the the response shall be calculated.
      • getMonitorPlanes

        public java.util.List<JMadPlane> getMonitorPlanes()
        Description copied from interface: ResponseRequest
        must return a plane for each of monitors, at which the position shall be taken to calc the response matrix element.
        Specified by:
        getMonitorPlanes in interface ResponseRequest
        Returns:
        the monitor-planes
      • getCorrectorPlanes

        public java.util.List<JMadPlane> getCorrectorPlanes()
        Description copied from interface: ResponseRequest
        must return the planes in which the correctors shall be kicked.
        Specified by:
        getCorrectorPlanes in interface ResponseRequest
        Returns:
        the planes for the correctors.
      • getMonitorRegexps

        public java.util.List<java.lang.String> getMonitorRegexps()
        Description copied from interface: ResponseRequest
        must return regular expressions representing the monitors. This makes the twiss faster then using all the names seperately as filter.
        Specified by:
        getMonitorRegexps in interface ResponseRequest
        Returns:
        a list of regular expressions.