Package cern.accsoft.steering.aloha.app
Class PreferencesImpl
- java.lang.Object
-
- cern.accsoft.steering.aloha.app.PreferencesImpl
-
- All Implemented Interfaces:
Preferences
public class PreferencesImpl extends java.lang.Object implements Preferences
-
-
Constructor Summary
Constructors Constructor Description PreferencesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDataPath()java.lang.IntegergetMeasurementNumber()java.text.NumberFormatgetNumberFormat()booleanisSelfTestEnabled()voidsetInputPath(java.lang.String dataPath)set the dataPath for AlohavoidsetMeasurementNumber(java.lang.Integer measurementNumber)voidsetNumberFormat(java.text.NumberFormat numberFormat)set a new numberFormatvoidsetSelfTestEnabled(boolean enabled)
-
-
-
Method Detail
-
getNumberFormat
public java.text.NumberFormat getNumberFormat()
- Specified by:
getNumberFormatin interfacePreferences- Returns:
- the number - format for aloha.
-
getDataPath
public java.lang.String getDataPath()
- Specified by:
getDataPathin interfacePreferences- Returns:
- the path where to look for data.
-
getMeasurementNumber
public java.lang.Integer getMeasurementNumber()
- Specified by:
getMeasurementNumberin interfacePreferences- Returns:
- the measurement number which shall be loaded by default
-
isSelfTestEnabled
public boolean isSelfTestEnabled()
- Specified by:
isSelfTestEnabledin interfacePreferences- Returns:
- true if selftest on startup is enabled, false otherwise
-
setInputPath
public void setInputPath(java.lang.String dataPath)
Description copied from interface:Preferencesset the dataPath for Aloha- Specified by:
setInputPathin interfacePreferences
-
setMeasurementNumber
public void setMeasurementNumber(java.lang.Integer measurementNumber)
- Specified by:
setMeasurementNumberin interfacePreferences- Parameters:
measurementNumber- the measurementNumber to set
-
setNumberFormat
public void setNumberFormat(java.text.NumberFormat numberFormat)
Description copied from interface:Preferencesset a new numberFormat- Specified by:
setNumberFormatin interfacePreferences- Parameters:
numberFormat- theNumberFormatto set
-
setSelfTestEnabled
public void setSelfTestEnabled(boolean enabled)
- Specified by:
setSelfTestEnabledin interfacePreferences- Parameters:
enabled- true to enable selftest on startup, false to disable
-
-