stella.parameter
Class ValueStub
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.ParameterStub
stella.parameter.ValueStub
- All Implemented Interfaces:
- Cloneable, Runnable, Remote, Parameter, Value, CancelRunnable, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, Reloadable, ResourceSupplying, RmiListener
public class ValueStub
- extends ParameterStub
- implements Value
The stub representation for a remote value. The remote value bound to is
normally a RemoteSensorSkeleton. This class provides
local access to the parameter data.
|
Constructor Summary |
ValueStub(Map prop)
Constructs a new value stub. |
ValueStub(String remotename)
For convenience, we support a constructor with only the remote name. |
| 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 |
ValueStub
public ValueStub(String remotename)
throws RemoteException
- For convenience, we support a constructor with only the remote name.
- Throws:
RemoteException
ValueStub
public ValueStub(Map prop)
throws RemoteException
- Constructs a new value stub. This value connects to a remote
parameter. The value retrieved must be of Number type.
- Throws:
RemoteException
getValue
public Number getValue()
- Casts the parameter value retrieved with
ParameterStub.get() to a Number.
Does not check if the returned value is of type Number.
- Specified by:
getValue in interface Value
setValue
public Number setValue(Number val)
- Throws an unsupported operation exception. Precisely, calls the
parental
ParameterStub.set(java.lang.Object) method
- Specified by:
setValue in interface Value