Interface UpdateRequest


  • public interface UpdateRequest
    • Method Detail

      • updateStructure

        boolean updateStructure​(JMadPlane plane)
        Determine if this request is a structural update.
        Parameters:
        plane - the JMadPlane to check if the structure needs to be updated
        Returns:
        true if a strucure update is required
      • getMachineElements

        java.util.List<Element> getMachineElements()
        Returns:
        the list of Elements defining the machine to update the interpolation tool with.
      • getMonitors

        java.util.Set<Element> getMonitors​(JMadPlane plane)
        Get the monitors to use for the interpolation. Only the elements returned by this method are used as measurement data input elements during interpolation. It is split up in planes, as it might be possible, that a monitor has only a good reading for one plane.
        Parameters:
        plane - the plane for which to retrieve the active monitors
        Returns:
        the monitors to use for the interpolation
      • isCircularMachine

        boolean isCircularMachine()
        Returns:
        true if the machine elements provided for a structure update are describing a circular accelerator.
      • updateMachineOptics

        boolean updateMachineOptics()
        Returns:
        true if the optics used for the interpolation should be updated.
      • getOptic

        Optic getOptic()
        Returns:
        the optic to update the interpolation tool with.