public class AdcPosition extends AbstractParameter 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 Map<Integer,AtmosphericDispersionCorrector> |
adcs
The lookup table of integer positions to adcs.
|
static String |
DEFNAME
The default name.
|
private static String |
DEFSLOTS
We have a look-up table linking integer positions to ADCs.
|
private Positioning |
filterwheel
The reference to the
Positioning driver. |
static String |
KEY_FILTERWHEEL
The name of the
Positioning driver. |
static String |
KEY_SLOTS
We have a look-up table linking integer positions to ADCs.
|
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 |
|---|
AdcPosition(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 |
|---|---|
AtmosphericDispersionCorrector |
get()
Tries to get the position of the ADC wheel and looks the position up.
|
protected AtmosphericDispersionCorrector |
getAdc()
Tries to get the position of the ADC wheel and looks the position up.
|
void |
init()
Initializes the parameter with its class name.
|
private void |
parseSlots() |
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.
|
Object |
set(Object to)
Not allowed
|
createParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, 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, waitdefaultBoolean, 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_FILTERWHEEL
Positioning driver.public static final String KEY_SLOTS
public static final String DEFNAME
private static final String DEFSLOTS
private Positioning filterwheel
Positioning driver.private Map<Integer,AtmosphericDispersionCorrector> adcs
public AdcPosition(Map<String,String> prop)
Positioning driver.public void init()
throws InitException
AbstractParameterinit in interface Initializableinit in class AbstractParameterInitExceptionprivate void parseSlots()
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 AtmosphericDispersionCorrector get()
protected AtmosphericDispersionCorrector getAdc()