Class SimpleStrength

    • Constructor Detail

      • SimpleStrength

        public SimpleStrength​(java.lang.String name,
                              double value,
                              java.lang.String comment)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Knob
        Returns:
        the name of the knob
      • doSetTotalValue

        protected void doSetTotalValue​(double value)
        Description copied from class: AbstractKnob
        has to be implemented by subclass to set the total value to madx. The only call from this is from setTotalValue, which also notifies the listeners.
        Specified by:
        doSetTotalValue in class AbstractKnob
        Parameters:
        value - the value to set
      • getTotalValue

        public double getTotalValue()
        Specified by:
        getTotalValue in interface Knob
        Returns:
        the total value (value+offset)
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface Knob
        Returns:
        a description for this knob
      • setDescription

        public void setDescription​(java.lang.String description)
      • getKey

        public java.lang.String getKey()
        Specified by:
        getKey in interface Knob
        Returns:
        a unique key (within all knobs of the same type)
      • getType

        public KnobType getType()
        Specified by:
        getType in interface Knob
        Returns:
        the type of this knob
      • getMadxName

        public java.lang.String getMadxName()
        Specified by:
        getMadxName in interface MadxParameter
        Returns:
        the name to be used in madx
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object