public class FilterFocusShift extends AbstractValue implements ParameterDepending
Positioning driver, which is useful
if this driver is a filter wheel. This parameter is driver depending and
keeps a reference to Positioning, if this driver has the correct
name in #KEY_FILTERWHEEL. Setting the value is not allowed, on
get, the filter wheel position is returned as an Integer.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
static String |
DEFNAME
The default name.
|
private static String |
DEFSHIFTFOCUS
Mu for one focus step.
|
private Parameter |
filter
Name of currently selected filter.
|
static String |
KEY_FILTERSELECT
The name of the selected filter parameter.
|
static String |
KEY_SHIFTFOCUS
An focus offset in mu transformed to appropriate units.
|
private Map<String,Double> |
shift
Lookup-table linking filter name to shift.
|
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWNKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
FilterFocusShift(Map<String,String> prop)
Constructs a new filter wheel parameter, defaulting its name and
the name of the
Positioning driver. |
| Modifier and Type | Method and Description |
|---|---|
Number |
getValue()
Tries to get the focus shift of the current ADC in steps.
|
void |
init()
Creates the filter-name to mm-offset lookup table.
|
void |
registerParameter(Parameter wheel)
A parameter depending command should drain the necessarry information
to get valid out of a parameter value.
|
Number |
setValue(Number to)
Not allowed
|
get, setcreateParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, overrideDefaultName, register, rescanned, setName, toStringclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, parseObject, reload, removeProperty, requires, setObject, setProperties, setProperty, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFormatted, getName, getStringdefaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringPropertiespublic static final String KEY_FILTERSELECT
public static final String KEY_SHIFTFOCUS
public static final String DEFNAME
private static final String DEFSHIFTFOCUS
private Parameter filter
public FilterFocusShift(Map<String,String> prop)
Positioning driver.public void init()
throws InitException
init in interface Initializableinit in class AbstractParameterInitExceptionpublic void registerParameter(Parameter wheel)
ParameterDependingregisterParameter in interface ParameterDependingpublic Number getValue()