stella.parameter
Class AbstractFitsMomentsValue

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.AbstractFitsMomentsValue
All Implemented Interfaces:
Cloneable, Parameter, TargetDependingValue, ParameterDepending, TargetDepending, TargetDependingParameter, Value, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying
Direct Known Subclasses:
FlatExposureTime, FlatQuality, FocusMeasure

public abstract class AbstractFitsMomentsValue
extends AbstractTargetValue
implements ParameterDepending

Provides basic facilities for target depending values that also need access to fits moments. The registering and query of either a local FitsMoments instance, or an instance of FitsParameterStub are supported.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static String DEFFITSMOMENTS
          The default lux value name.
static String KEY_FITSMOMENTS
          This key links to the name of the fitsmoments parameter.
private  FitsUpdateListener listen
          Listener instance for remote notification.
private  AbstractFitsParameter locmoments
          The parameter that holds the fits central moments, local.
private  FitsParameterStub rmimoments
          The parameter that holds the fits central moments, rmi.
 
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
protected AbstractFitsMomentsValue(Map<String,String> prop)
          Construction of the flat exposure time calculator.
 
Method Summary
protected  Date getDateObs()
          Returns the date of the observation set on the fits either from the local copy or from remote.
protected  double getExposureTime()
          Returns the last exposure time set on the fits either from the local copy or from remote.
protected  Object getFits()
          Returns the fits parameter value from the local copy or from remote.
protected  long getRegistered()
          Gets registering time stamp set on the fits either from the local copy or from remote.
 void init()
          On init, we create the table for calculating the times.
 void registerMonitor(Object sleep)
          We register the object for notification.
 void registerParameter(Parameter p)
          We register a parameter that delivers sky brightness.
 Number setValue(Number number)
          Throws an unsupported operation exception.
 
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.TargetDependingValue
getForTarget
 
Methods inherited from interface stella.TargetDependingParameter
getFormattedFor
 
Methods inherited from interface stella.TargetDepending
registerTarget
 
Methods inherited from interface stella.Value
getValue
 
Methods inherited from interface stella.Parameter
getFormatted, getName, getString
 
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 util.ResourceSupplying
getResource, getResourceAsStream, getResources
 

Field Detail

KEY_FITSMOMENTS

public static final String KEY_FITSMOMENTS
This key links to the name of the fitsmoments parameter.

See Also:
Constant Field Values

DEFFITSMOMENTS

private static final String DEFFITSMOMENTS
The default lux value name.

See Also:
Constant Field Values

rmimoments

private FitsParameterStub rmimoments
The parameter that holds the fits central moments, rmi.


locmoments

private AbstractFitsParameter locmoments
The parameter that holds the fits central moments, local.


listen

private FitsUpdateListener listen
Listener instance for remote notification.

Constructor Detail

AbstractFitsMomentsValue

protected AbstractFitsMomentsValue(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

registerParameter

public void registerParameter(Parameter p)
We register a parameter that delivers sky brightness. Preferrably it links directly to a brightness sensor, if none is present, a solz-dependancy can be used.

Specified by:
registerParameter in interface ParameterDepending

setValue

public Number setValue(Number number)
Throws an unsupported operation exception.

Specified by:
setValue in interface Value

getFits

protected Object getFits()
Returns the fits parameter value from the local copy or from remote.


getExposureTime

protected double getExposureTime()
Returns the last exposure time set on the fits either from the local copy or from remote.


getRegistered

protected long getRegistered()
Gets registering time stamp set on the fits either from the local copy or from remote.


getDateObs

protected Date getDateObs()
Returns the date of the observation set on the fits either from the local copy or from remote.


registerMonitor

public void registerMonitor(Object sleep)
We register the object for notification. If the local copy is null we register an update listener to the remote parameter.