public class FlatMaximumTime extends AbstractTargetValue implements ExposureTimeMeasuring
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFFILTERTIMES
The default lux-to-sec expressions for all filters.
|
static String |
DEFNAME
The default name.
|
private static double |
DEFTIME
Default time.
|
private String |
filter
The last filter registered.
|
private Map<String,Double> |
filtertime
The maximum exposure times for different flats.
|
static String |
KEY_CONSTANT
The name of the setup constant that holds the filter.
|
static String |
KEY_FILTERTIMES
This key links filter names to times.
|
static String |
KEY_SETUP
The setup section that carries the flat-field filter.
|
KEY_INDEXKEY_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 |
|---|
FlatMaximumTime(Map<String,String> prop)
Construction of the flat exposure time calculator.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
getForTarget(TargetDefinition td)
If queried with a target, we always ignore the fits moments, as these
cannot be valid.
|
Number |
getValue()
We get the estimated flat exposure time.
|
void |
init()
On init, we create the table for calculating the times.
|
void |
registerTarget(TargetDefinition td)
We register the target.
|
Number |
setValue(Number v)
We get the estimated flat exposure time.
|
get, setgetAsStar, getConstant, getFormattedFor, getSetupcreateParameter, 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, 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, stringPropertiesgetFormattedForpublic static final String KEY_FILTERTIMES
public static final String KEY_SETUP
public static final String KEY_CONSTANT
public static final String DEFNAME
private static final String DEFFILTERTIMES
private static final double DEFTIME
private String filter
public void init()
throws InitException
init in interface Initializableinit in class AbstractParameterInitExceptionpublic void registerTarget(TargetDefinition td)
registerTarget in interface TargetDependingpublic Number getValue()
public Number getForTarget(TargetDefinition td)
getForTarget in interface TargetDependingParametergetForTarget in interface TargetDependingValue