stella.parameter
Class FitsParameterStub
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.ParameterStub
stella.parameter.FitsParameterStub
- All Implemented Interfaces:
- Cloneable, Runnable, Remote, Parameter, CancelRunnable, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, Reloadable, ResourceSupplying, RmiListener
public class FitsParameterStub
- extends ParameterStub
The stub to a remote fits parameter. Allows local acces to fits exposure
time, fits register time and date-obs plus the normal get method.
|
Method Summary |
void |
addUpdate(RmiUpdateListener ear)
Registers an update listener. |
Date |
getDateObs()
Gets the value of the remotely wrapped fits parameter that has
the observing time of the fits. |
double |
getExposureTime()
Gets the value of the remotely wrapped fits parameter that has
the exposure time of the fits. |
long |
getRegistered()
Gets the value of the remotely wrapped fits parameter that has
the registering time of the fits. |
void |
removeUpdate(RmiUpdateListener ear)
Registers an update listener. |
| Methods inherited from class stella.parameter.ParameterStub |
cancel, disconnect, exit, get, getAsociatedThread, getFormatted, init, isConnected, maxTimeToCancel, rebind, rescanned, run, set |
| 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 |
FitsParameterStub
public FitsParameterStub(String remotename)
throws RemoteException
- For convenience, we support a constructor with only the remote name.
This
constructor also initiates the binding process with a call to
ParameterStub.init().
- Throws:
RemoteException
FitsParameterStub
public FitsParameterStub(Map<String,String> prop)
throws RemoteException
- Constructs a new paramter stub. This means the parameter tries to
register at a
RemoteParameter. If the remote counterpart is not
yet bound, a retry loop, defined with ParameterStub.KEY_RETRY and
ParameterStub.KEY_WAIT is started during which the parameter waits for the
server to come up.
- Throws:
RemoteException
getExposureTime
public double getExposureTime()
- Gets the value of the remotely wrapped fits parameter that has
the exposure time of the fits.
getDateObs
public Date getDateObs()
- Gets the value of the remotely wrapped fits parameter that has
the observing time of the fits.
getRegistered
public long getRegistered()
- Gets the value of the remotely wrapped fits parameter that has
the registering time of the fits.
addUpdate
public void addUpdate(RmiUpdateListener ear)
- Registers an update listener.
removeUpdate
public void removeUpdate(RmiUpdateListener ear)
- Registers an update listener.