public class ShutterTimes extends AbstractValue implements DriverDepending, Reloadable
KEY_FLAVOR property points to the method queried.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFFLAVOR
We link to the total shutter open time.
|
static String |
DEFNAME
The default name.
|
private static String |
DEFSHUTTER
We link to the default shutter name.
|
static String |
KEY_FLAVOR
The name of the
Shutter method to invoke. |
static String |
KEY_SHUTTER
The name of the
Shutter driver. |
private Shutter |
shutter
The reference to the
Shutter driver. |
private Method |
timing
The method to invoke for retrieving the time.
|
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 |
|---|
ShutterTimes(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 |
|---|---|
String |
getFormatted()
Formatted return is in sec.
|
Number |
getValue()
Tries to get the position of the filterwheel as an integer.
|
private static Method |
probeMethod(String flavor,
Class shutit)
Scan for the method with the given name in the stated class.
|
boolean |
registerDriver(Driver fw)
Registers the driver.
|
double |
rescanned(String key,
String old,
String newval)
As any parameter depending instance we fail if the driver we depend
on is now a different one.
|
private boolean |
selectMethod()
We try to select the method stated by its name as the method to get
the shutter time.
|
Number |
setValue(Number to)
Not allowed.
|
get, setcreateParameter, delivers, exit, 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, waitreloaddefaultBoolean, 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_SHUTTER
Shutter driver.public static final String KEY_FLAVOR
Shutter method to invoke.public static final String DEFNAME
private static final String DEFSHUTTER
private static final String DEFFLAVOR
private Method timing
public ShutterTimes(Map<String,String> prop)
Positioning driver.public double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class AbstractParameterprivate boolean selectMethod()
private static Method probeMethod(String flavor, Class shutit)
public boolean registerDriver(Driver fw)
Positioning and its name equals
#KEY_FILTERWHEEL, we keep a reference to it.registerDriver in interface DriverDependingpublic Number getValue()
public String getFormatted()
getFormatted in interface ParametergetFormatted in class AbstractParameter