public class FilterWheelPosition extends AbstractValue implements DriverDepending
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 |
|---|---|
private static String |
DEFFILTERWHEEL
We link to the default filterwheel name.
|
static String |
DEFNAME
The default name.
|
private Positioning |
filterwheel
The reference to the
Positioning driver. |
static String |
KEY_FILTERWHEEL
The name of the
Positioning driver. |
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 |
|---|
FilterWheelPosition(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 position of the filterwheel as an integer.
|
boolean |
registerDriver(Driver fw)
Registers the driver.
|
double |
rescanned(String key,
String old,
String newval)
As any parameter depending instance we fail if the parameter we depend
on is now a different one.
|
Number |
setValue(Number to)
Not allowed
|
get, setcreateParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, init, overrideDefaultName, register, 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, stringPropertiesinitpublic static final String KEY_FILTERWHEEL
Positioning driver.public static final String DEFNAME
private static final String DEFFILTERWHEEL
private Positioning filterwheel
Positioning driver.public FilterWheelPosition(Map<String,String> prop)
Positioning driver.public double rescanned(String key, String old, String newval)
rescanned in class AbstractParameterpublic boolean registerDriver(Driver fw)
Positioning and its name equals
KEY_FILTERWHEEL, we keep a reference to it.registerDriver in interface DriverDependingpublic Number getValue()