stella.parameter
Class FitsParameterStub

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.parameter.AbstractParameter
                  extended by stella.parameter.ParameterStub
                      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class stella.parameter.ParameterStub
ParameterStub.Finger
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
 
Fields inherited from class stella.parameter.ParameterStub
KEY_BLOCK, KEY_FORMATCLASS, KEY_FORMATPATTERN, KEY_INITTRY, KEY_REMOTENAME, KEY_RETRY, KEY_SERVERDELAY, KEY_WAIT, sensor
 
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
FitsParameterStub(Map<String,String> prop)
          Constructs a new paramter stub.
FitsParameterStub(String remotename)
          For convenience, we support a constructor with only the remote name.
 
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 stella.parameter.AbstractParameter
createParameter, delivers, 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 util.Reloadable
reload
 
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
 

Constructor Detail

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
Method Detail

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.