Class SimpleStrength
- java.lang.Object
-
- cern.accsoft.steering.jmad.domain.knob.AbstractKnob
-
- cern.accsoft.steering.jmad.domain.knob.strength.SimpleStrength
-
- All Implemented Interfaces:
Knob,MadxParameter,Strength
public class SimpleStrength extends AbstractKnob implements Strength
-
-
Constructor Summary
Constructors Constructor Description SimpleStrength(java.lang.String name, double value, java.lang.String comment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoSetTotalValue(double value)has to be implemented by subclass to set the total value to madx.java.lang.StringgetDescription()java.lang.StringgetKey()java.lang.StringgetMadxName()java.lang.StringgetName()doublegetTotalValue()KnobTypegetType()voidsetDescription(java.lang.String description)java.lang.StringtoString()-
Methods inherited from class cern.accsoft.steering.jmad.domain.knob.AbstractKnob
addListener, getOffset, getValue, removeListener, setOffset, setValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cern.accsoft.steering.jmad.domain.knob.Knob
addListener, getOffset, getValue, removeListener, setOffset, setValue
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
doSetTotalValue
protected void doSetTotalValue(double value)
Description copied from class:AbstractKnobhas 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:
doSetTotalValuein classAbstractKnob- Parameters:
value- the value to set
-
getTotalValue
public double getTotalValue()
- Specified by:
getTotalValuein interfaceKnob- Returns:
- the total value (value+offset)
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceKnob- Returns:
- a description for this knob
-
setDescription
public void setDescription(java.lang.String description)
-
getKey
public java.lang.String getKey()
-
getType
public KnobType getType()
-
getMadxName
public java.lang.String getMadxName()
- Specified by:
getMadxNamein interfaceMadxParameter- Returns:
- the name to be used in madx
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-