Class KnobVariationParameter

  • All Implemented Interfaces:
    VariationParameter

    public class KnobVariationParameter
    extends AbstractVariationParameter
    implements VariationParameter
    This class encapsulates the functionality to vary parameters of the madx-model by a Algorithm. It encapsulates a Knob of a model. The class then provides a possibility to set these variable with a new value and to reset it afterwards. NOTE: no direct reference to the knob is stored, since the knob has to be applied to all models.
    • Constructor Detail

      • KnobVariationParameter

        public KnobVariationParameter​(ModelDelegateManager modelDelegateManager,
                                      cern.accsoft.steering.jmad.domain.knob.Knob knob)
      • KnobVariationParameter

        public KnobVariationParameter​(ModelDelegateManager modelDelegateManager,
                                      cern.accsoft.steering.jmad.domain.knob.KnobType type,
                                      java.lang.String knobKey)
    • Method Detail

      • getKnob

        public final cern.accsoft.steering.jmad.domain.knob.Knob getKnob​(cern.accsoft.steering.jmad.model.JMadModel model)
        return the Knob which corresponds to parameter in the given model.
        Parameters:
        model - the model for which to get the knob
        Returns:
        the Knob
      • createKey

        public static java.lang.String createKey​(cern.accsoft.steering.jmad.domain.knob.Knob knob)
        composes a key for the knob depending on its type and its model-internal key.
        Parameters:
        knob - the Knob for which to create the key
        Returns:
        the key
      • createKey

        public static java.lang.String createKey​(cern.accsoft.steering.jmad.domain.knob.KnobType type,
                                                 java.lang.String knobKey)
        composes a key for a knob depending on its model-internal key and its type.
        Parameters:
        type - the type of the knob
        knobKey - the model internal key of the knob
        Returns:
        the key