Class JMadModelDelegate

    • Method Detail

      • getJMadModel

        public cern.accsoft.steering.jmad.model.JMadModel getJMadModel()
        Specified by:
        getJMadModel in interface ModelDelegate
        Returns:
        the madxModel
      • isInitialized

        public boolean isInitialized()
        Specified by:
        isInitialized in interface ModelDelegate
        Returns:
        true, if the model is initialized
      • applyTrim

        public void applyTrim​(TrimData trimData)
        Description copied from interface: ModelDelegate
        sets the Correctors of the model to the values given in TrimData
        Specified by:
        applyTrim in interface ModelDelegate
        Parameters:
        trimData - the trim-data to apply to the model
      • applyAlignment

        public void applyAlignment​(AlignmentData alignmentData)
        Description copied from interface: ModelDelegate
        sets the misalignments to the elements, as they are given in the alignmentData
        Specified by:
        applyAlignment in interface ModelDelegate
      • setSuppressEvents

        public void setSuppressEvents​(boolean suppressEvents)
        Description copied from interface: ModelDelegate
        if this is set to true, then the listener event (becameDirty) are not fired. This is useful if on is modifying the model several times during a complicated calculation (e.g. calculating the response matrix) and one wants to avoid that all clients of the ModelDelegate get notified that the model bacame dirty and therefore recalculate their values, although the model did not change permanently, but only temporarily.

        NOTE: The client is responsible to restore the same state of the model as before!

        Specified by:
        setSuppressEvents in interface ModelDelegate
        Parameters:
        suppressEvents - true to suppress the event, false for nominal behaviour.
      • getMonitorRegexps

        public java.util.List<java.lang.String> getMonitorRegexps()
        Specified by:
        getMonitorRegexps in interface ModelDelegate
        Returns:
        a list of regexpressions representing the monitors, or an empty list. This can be used e.g. for calculating the response matrix.