stella.parameter
Class FlatMaximumTime

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.parameter.AbstractParameter
                  extended by stella.parameter.AbstractTargetParameter
                      extended by stella.parameter.AbstractTargetValue
                          extended by stella.parameter.FlatMaximumTime
All Implemented Interfaces:
Cloneable, Parameter, ExposureTimeMeasuring, TargetDependingValue, TargetDepending, TargetDependingParameter, Value, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class FlatMaximumTime
extends AbstractTargetValue
implements ExposureTimeMeasuring

The maximum exposure time allowed for flats is a filter function, because it basically defines when too much star light is visible in the flat. There is an upper cut that is related to the time scale of twilight darkening, as it is not useful to expose for an hour, if it is getting too dark too fast.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
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.
 
Fields inherited from class stella.parameter.AbstractTargetParameter
KEY_INDEX
 
Fields inherited from class stella.parameter.AbstractParameter
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWN
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Constructor Summary
FlatMaximumTime(Map<String,String> prop)
          Construction of the flat exposure time calculator.
 
Method Summary
 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.
 
Methods inherited from class stella.parameter.AbstractTargetValue
get, set
 
Methods inherited from class stella.parameter.AbstractTargetParameter
getAsStar, getConstant, getFormattedFor, getSetup
 
Methods inherited from class stella.parameter.AbstractParameter
createParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, register, rescanned, setName, toString
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
Methods inherited from class util.PropertyResources
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet
 
Methods inherited from class util.PropertyContainer
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, reload, removeProperty, setObject, setProperties, setProperty, stringProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface stella.Parameter
get, getFormatted, getName, getString, set
 
Methods inherited from interface util.PropertySupplying
defaultBoolean, 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, stringProperties
 
Methods inherited from interface stella.TargetDependingParameter
getFormattedFor
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 

Field Detail

KEY_FILTERTIMES

public static final String KEY_FILTERTIMES
This key links filter names to times.

See Also:
Constant Field Values

KEY_SETUP

public static final String KEY_SETUP
The setup section that carries the flat-field filter.

See Also:
Constant Field Values

KEY_CONSTANT

public static final String KEY_CONSTANT
The name of the setup constant that holds the filter.

See Also:
Constant Field Values

DEFNAME

public static final String DEFNAME
The default name.

See Also:
Constant Field Values

DEFFILTERTIMES

private static final String DEFFILTERTIMES
The default lux-to-sec expressions for all filters.

See Also:
Constant Field Values

DEFTIME

private static final double DEFTIME
Default time.

See Also:
Constant Field Values

filtertime

private Map<String,Double> filtertime
The maximum exposure times for different flats.


filter

private String filter
The last filter registered.

Constructor Detail

FlatMaximumTime

public FlatMaximumTime(Map<String,String> prop)
Construction of the flat exposure time calculator.

Method Detail

init

public void init()
On init, we create the table for calculating the times.

Specified by:
init in interface Initializable
Overrides:
init in class AbstractParameter

registerTarget

public void registerTarget(TargetDefinition td)
We register the target. Grabs the the target filter and grabs the current time-stamp to allow proper identification of the fits moments.

Specified by:
registerTarget in interface TargetDepending

getValue

public Number getValue()
We get the estimated flat exposure time.

Specified by:
getValue in interface Value

setValue

public Number setValue(Number v)
We get the estimated flat exposure time.

Specified by:
setValue in interface Value

getForTarget

public Number getForTarget(TargetDefinition td)
If queried with a target, we always ignore the fits moments, as these cannot be valid.

Specified by:
getForTarget in interface TargetDependingValue
Specified by:
getForTarget in interface TargetDependingParameter