Class KnobManagerImpl

  • All Implemented Interfaces:
    KnobManager

    public class KnobManagerImpl
    extends java.lang.Object
    implements KnobManager
    The simplest implementation of a knob-manager
    • Constructor Detail

      • KnobManagerImpl

        public KnobManagerImpl​(JMadModel model)
    • Method Detail

      • addCustomKnob

        public void addCustomKnob​(Knob knob)
        Specified by:
        addCustomKnob in interface KnobManager
        Parameters:
        knob - the knob to add
      • getCustomKnobs

        public java.util.List<Knob> getCustomKnobs()
        Specified by:
        getCustomKnobs in interface KnobManager
        Returns:
        all available custom knobs
      • getKnob

        public Knob getKnob​(KnobType type,
                            java.lang.String key)
        Description copied from interface: KnobManager
        retrieves a knob given by the type and the key within the type
        Specified by:
        getKnob in interface KnobManager
        Parameters:
        type - the type of the knob
        key - the unique key within the type
        Returns:
        the knob
      • cleanup

        public void cleanup()
        Description copied from interface: KnobManager
        removes all the knobs, except the custom ones.
        Specified by:
        cleanup in interface KnobManager