|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.AbstractRemoteParameter
stella.parameter.AbstractFitsParameter
public abstract class AbstractFitsParameter
A class of values that deal with read-in fits files, where a (small) window is extracted to get some statistics. For asynchronous access, we notify a sleeping object on ADU arrival.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private Date |
dateobs
And the obs-date. |
private double |
exptime
The exposure time in seconds. |
private long |
registered
The time the fits was registered. |
private Object |
sleeper
The object to notify of adus changes, local only. |
private List<RmiUpdateListener> |
update
On registering, we copy the update listeners for rmi notification. |
| Fields inherited from class stella.parameter.AbstractRemoteParameter |
|---|
DEFBIND, KEY_BIND |
| 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 |
AbstractFitsParameter(Map<String,String> prop)
Constructs a new fits measuring tool. |
| Method Summary | |
|---|---|
void |
addRmiListener(RmiListener ear)
Adds a listener for notification on exit. |
Date |
getDateObs()
Returns the observation time, if specified in the fits header or the time of fits registering. |
double |
getExposureTime()
Returns the exposure time in seconds or zero if undefined. |
long |
getRegistered()
Returns the time-stamp when the fits was registered. |
protected abstract boolean |
processFits(nom.tam.fits.Fits file,
Rectangle readout,
Dimension bin,
Date when,
long reg,
double t)
Processes the fits to avoid storing of all data. |
void |
registerFits(nom.tam.fits.Fits file,
double t,
Rectangle readout,
Dimension bin)
The fits file and the exposure time should be registered just when the fits file resides in memory. |
Object |
registerMonitor(Object waiter)
Registers an object. |
void |
removeRmiListener(RmiListener ear)
Removes a listener. |
Date |
rmiDateObs()
Remote access to getDateObs(). |
double |
rmiExposureTime()
Remote access to getExposureTime(). |
long |
rmiRegistered()
Remote access to getRegistered(). |
Object |
set(Object o)
Setting is not allowed. |
protected void |
setDateObs(Date t)
Sets the exposure time for subclasses. |
protected void |
setExposureTime(double t)
Sets the exposure time for subclasses. |
protected void |
setRegistered(long r)
Returns the time-stamp when the fits was registered. |
| Methods inherited from class stella.parameter.AbstractRemoteParameter |
|---|
bindToRegistry, exit, init, isValid, remoteGet, rescanned, unbindFromRegistry |
| Methods inherited from class stella.parameter.AbstractParameter |
|---|
createParameter, delivers, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, register, 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.rmi.RemoteParameter |
|---|
remoteGet |
| Methods inherited from interface util.rmi.RmiCaster |
|---|
bindToRegistry, isValid, unbindFromRegistry |
| Methods inherited from interface stella.Parameter |
|---|
get |
| 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 |
|---|
private double exptime
private long registered
private Date dateobs
private List<RmiUpdateListener> update
private Object sleeper
| Constructor Detail |
|---|
protected AbstractFitsParameter(Map<String,String> prop)
registerFits before retrieve the value.
| Method Detail |
|---|
public void addRmiListener(RmiListener ear)
throws RemoteException
addRmiListener in interface RemoteParameteraddRmiListener in class AbstractRemoteParameterRemoteException
public void removeRmiListener(RmiListener ear)
throws RemoteException
removeRmiListener in interface RemoteParameterremoveRmiListener in class AbstractRemoteParameterRemoteException
public void registerFits(nom.tam.fits.Fits file,
double t,
Rectangle readout,
Dimension bin)
#getValue will retrieve
the daughter class value. The fits values extracted are zero and scale
corrected and promoted to doubles.
t - Exposure time in seconds.public Object registerMonitor(Object waiter)
registerMonitor in interface EventTriggerpublic Object set(Object o)
set in interface Parameterprotected void setExposureTime(double t)
public double getExposureTime()
public double rmiExposureTime()
throws RemoteException
getExposureTime().
rmiExposureTime in interface RemoteFitsParameterRemoteExceptionprotected void setDateObs(Date t)
public Date getDateObs()
public Date rmiDateObs()
throws RemoteException
getDateObs().
rmiDateObs in interface RemoteFitsParameterRemoteExceptionpublic long getRegistered()
protected void setRegistered(long r)
public long rmiRegistered()
throws RemoteException
getRegistered().
rmiRegistered in interface RemoteFitsParameterRemoteException
protected abstract boolean processFits(nom.tam.fits.Fits file,
Rectangle readout,
Dimension bin,
Date when,
long reg,
double t)
file - The fits object holding the datareadout - The readout framebin - The applied binningwhen - The time of the exposure or the register time, if dateobs unknown.reg - The time this fits was registered.t - Exposure time in seconds.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||