stella.parameter
Class AbstractFitsMomentsValue
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.AbstractTargetParameter
stella.parameter.AbstractTargetValue
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.
|
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.AbstractParameter |
createParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, register, rescanned, setName, toString |
| 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 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 |
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.
AbstractFitsMomentsValue
protected AbstractFitsMomentsValue(Map<String,String> prop)
- Construction of the flat exposure time calculator.
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.