stella.sensor
Class ParameterSensor
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
util.rmi.RmiPropertyContainer
util.rmi.AbstractRmiCaster
stella.sensor.AbstractSensor
stella.sensor.TimerTaskSensor
stella.sensor.DataSensor
stella.sensor.CumulativeSensor
stella.sensor.PredictiveSensor
stella.sensor.SmoothingSensor
stella.sensor.DerivativeSensor
stella.sensor.WeatherSensor
stella.sensor.ParameterSensor
- All Implemented Interfaces:
- Cloneable, Remote, Caster, DataCaster, ParameterDepending, RmiDataCaster, RmiErrorCaster, Cumulating, Deriving, Predicting, Smoothing, Telemetering, WeatherJudging, WeatherCaster, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, RmiCaster, RmiPropertyBearing
public class ParameterSensor
- extends WeatherSensor
- implements ParameterDepending
A sensor that reads a parameter and derives its rule out of it. Can be used
to wrap data i.e. from the CCD into a weather sensor.
| Fields inherited from class stella.sensor.WeatherSensor |
KEY_DERIVATIVEINVALID, KEY_DERIVATIVEPARAMETER, KEY_INVERSE, KEY_INVERSEDERIVATIVE, KEY_JUDGEDERIVATIVE, KEY_JUDGEPREDICT, KEY_JUDGERAW, KEY_JUDGESMOOTH, KEY_PREDICTINVALID, KEY_PREDICTPARAMETER, KEY_RAWINVALID, KEY_RAWPARAMETER, KEY_RETARDBADDERIVATIVE, KEY_RETARDBADPREDICT, KEY_RETARDBADRAW, KEY_RETARDBADSMOOTH, KEY_RETARDGOODDERIVATIVE, KEY_RETARDGOODPREDICT, KEY_RETARDGOODRAW, KEY_RETARDGOODSMOOTH, KEY_SMOOTHINVALID, KEY_SMOOTHPARAMETER |
|
Constructor Summary |
ParameterSensor(Map qualify)
Constructs a fully-qualified parameter sensor. |
|
Method Summary |
double |
readSensor()
Reads the sensor. |
void |
registerParameter(Parameter what)
Registers the required additional parameters for a solar height sensor. |
boolean |
validReading()
The solar height sensor is always valid if the solar height is defined. |
| Methods inherited from class stella.sensor.WeatherSensor |
addWeatherListener, conductOneMeasure, currentlyClear, currentlyRetarding, generateDataEvent, getMinClearUpTime, getSensorInitInfo, goodFromDerivative, goodFromPredict, goodFromRaw, goodFromSmooth, isDerivativeRetard, isPredictRetard, isRawRetard, isSmoothRetard, judgeWeather, notifyWeatherListener, removeWeatherListener, status |
| Methods inherited from class stella.sensor.TimerTaskSensor |
cancel, equals, getRawToggleInfo, getReading, getRespawn, getTimeOfRead, hashCode, initSensorTimerTask, isReady, regetRaw, setTimeOfRead, validReading |
| Methods inherited from class stella.sensor.AbstractSensor |
addRmiErrorListener, createSensor, getBindName, getConvert, getSensorDescription, getSensorName, init, notifyErrorListener, removeRmiErrorListener, setConvert, 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, rescanned, 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_PARAMETER
public static final String KEY_PARAMETER
- The key describing the name of the wrapped parameter.
- See Also:
- Constant Field Values
value
private Value value
- The Value we wrap.
ParameterSensor
public ParameterSensor(Map qualify)
throws RemoteException
- Constructs a fully-qualified parameter sensor. The parameter the sensor
depends on must deliver Numbers, i.e. be a value.
- Throws:
RemoteException
registerParameter
public void registerParameter(Parameter what)
- Registers the required additional parameters for a solar height sensor.
This is the sidereal time, the solar height, the Sun's position, i.e.
ra dec and the latitude of the observatory.
- Specified by:
registerParameter in interface ParameterDepending
readSensor
public double readSensor()
- Reads the sensor. For the calculated sol z sensor this means the
calculation of the solar position and the local sidereal time at the
actual date. The calculation is done using the helper classes
Sol, Sidereal and place which may be defined in the
properties at construct.
- Specified by:
readSensor in class TimerTaskSensor
- Returns:
- The cosine of the actual solar zenith distance.
- See Also:
ConvertToPhysical
validReading
public boolean validReading()
- The solar height sensor is always valid if the solar height is defined.
- Specified by:
validReading in interface Telemetering