Package cern.accsoft.steering.jmad.model
Class KnobManagerImpl
- java.lang.Object
-
- cern.accsoft.steering.jmad.model.KnobManagerImpl
-
- All Implemented Interfaces:
KnobManager
public class KnobManagerImpl extends java.lang.Object implements KnobManager
The simplest implementation of a knob-manager
-
-
Constructor Summary
Constructors Constructor Description KnobManagerImpl(JMadModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomKnob(Knob knob)voidcleanup()removes all the knobs, except the custom ones.java.util.List<Knob>getCustomKnobs()KnobgetKnob(KnobType type, java.lang.String key)retrieves a knob given by the type and the key within the type
-
-
-
Constructor Detail
-
KnobManagerImpl
public KnobManagerImpl(JMadModel model)
-
-
Method Detail
-
addCustomKnob
public void addCustomKnob(Knob knob)
- Specified by:
addCustomKnobin interfaceKnobManager- Parameters:
knob- the knob to add
-
getCustomKnobs
public java.util.List<Knob> getCustomKnobs()
- Specified by:
getCustomKnobsin interfaceKnobManager- Returns:
- all available custom knobs
-
getKnob
public Knob getKnob(KnobType type, java.lang.String key)
Description copied from interface:KnobManagerretrieves a knob given by the type and the key within the type- Specified by:
getKnobin interfaceKnobManager- Parameters:
type- the type of the knobkey- the unique key within the type- Returns:
- the knob
-
cleanup
public void cleanup()
Description copied from interface:KnobManagerremoves all the knobs, except the custom ones.- Specified by:
cleanupin interfaceKnobManager
-
-