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 void
addCustomKnob(Knob knob)
void
cleanup()
removes all the knobs, except the custom ones.java.util.List<Knob>
getCustomKnobs()
Knob
getKnob(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:
addCustomKnob
in interfaceKnobManager
- Parameters:
knob
- the knob to add
-
getCustomKnobs
public java.util.List<Knob> getCustomKnobs()
- Specified by:
getCustomKnobs
in interfaceKnobManager
- 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 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:KnobManager
removes all the knobs, except the custom ones.- Specified by:
cleanup
in interfaceKnobManager
-
-