Class AbstractMultiModelKnob
- java.lang.Object
-
- cern.accsoft.steering.jmad.domain.knob.AbstractKnob
-
- cern.accsoft.steering.jmad.model.knob.AbstractMultiModelKnob
-
- All Implemented Interfaces:
Knob
,MultiModelKnob
- Direct Known Subclasses:
LinearKnob
public abstract class AbstractMultiModelKnob extends AbstractKnob implements MultiModelKnob
Implementation of a Knob which allows to act on multiple Models. Changes to the Knob value have to be propagated to all connected Models.
-
-
Constructor Summary
Constructors Constructor Description AbstractMultiModelKnob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addModel(JMadModel model)
Add aJMadModel
to the Knob.java.util.List<JMadModel>
getConnectedModels()
-
Methods inherited from class cern.accsoft.steering.jmad.domain.knob.AbstractKnob
addListener, doSetTotalValue, getOffset, getValue, removeListener, setOffset, setValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cern.accsoft.steering.jmad.domain.knob.Knob
addListener, getDescription, getKey, getName, getOffset, getTotalValue, getType, getValue, removeListener, setOffset, setValue
-
-
-
-
Method Detail
-
addModel
public void addModel(JMadModel model)
Description copied from interface:MultiModelKnob
Add aJMadModel
to the Knob. Every added Model will be updated with knob value changes.- Specified by:
addModel
in interfaceMultiModelKnob
- Parameters:
model
- theJMadModel
to add to the Knob
-
-