public class SolHeightSensor extends WeatherSensor implements PI, ParameterDepending
WeatherSensor that acts
similar to the stand-alone SolZSensor. This sensor depends on
parameters registered to it, thus it can only be used in environments,
where a SolHeight parameter is registerd to it.
Note that this class uses its own properties to construct its
ConvertToPhysical instance, the CosineConversion.TimerTaskSensor.SensorReadPropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFLATITUDE
The default name of the latitude parameter to use.
|
private static double |
DEFRISETWILIGHT
The default z solar toggle value.
|
private static double |
DEFSETTWILIGHT
The default z solar toggle value.
|
private static String |
DEFSIDEREAL
The default name of the sidereal parameter to use.
|
private static String |
DEFSOLDEC
The default name of the solar declination to use.
|
private static String |
DEFSOLHEIGHT
The default solar height parameter name.
|
private static String |
DEFSOLRA
The default name of the solar right ascension to use.
|
static String |
KEY_LATITUDE
The name of the latitude to use.
|
static String |
KEY_RISETWILIGHT
The key to the good-weather toggle height of the sun.
|
static String |
KEY_SETTWILIGHT
The key to the good-weather toggle height of the sun.
|
static String |
KEY_SIDEREAL
The name of the sidereal time to use.
|
static String |
KEY_SOLDEC
The name of the solar declination to use.
|
static String |
KEY_SOLHEIGHT
The key describing the solar height parameter.
|
static String |
KEY_SOLRA
The name of the solar right ascension to use.
|
private Value |
phi
The longitude of Teide, degrees.
|
private Value |
soldec
The solar declination parameter to use.
|
private Value |
solra
The solar right ascension parameter to use.
|
private Value |
solz
The solar height parameter.
|
private Value |
theta
The actual sidereal time.
|
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_SMOOTHPARAMETERDEFRAWDERIVATIVE, derive, KEY_DERIVATIVEADVISE, KEY_DERIVE, KEY_PATH, KEY_RAWDERIVATIVE, zf, g, KEY_SMOOTH, KEY_SMOOTHADVISEKEY_CHI, KEY_EXTRAPOLATE, KEY_FUTURE, KEY_PREDICTADVISE, predictKEY_AVERAGE, KEY_MEMORY, KEY_PACKDEFRAWFORMAT, DEFREPORT, DEFSIGMAFORMAT, KEY_RAWFORMAT, KEY_REPORT, KEY_SIGMAFORMATKEY_LOGRAWABOVE, KEY_LOGRAWBELOW, KEY_LOGREADLAG, KEY_RESPAWNKEY_BIND, KEY_BINDNAME, KEY_CONVERT, KEY_DESCRIPTION, KEY_SENSORNAMEALTERNATEHOST, ALTERNATEPORT, KEY_EXPORTPORT, KEY_REGISTRYHOST, KEY_REGISTRYPORTKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORNAMING_EXTENSIONCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
SolHeightSensor(Map qualify)
Constructs a fully-qualified sol height sensor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
currentlyRetarding()
Returns false.
|
void |
deriveAt(double raw)
The implementation of the deriving interface.
|
long |
getMinClearUpTime()
The time until sunset.
|
protected boolean |
goodFromRaw(double rawdummy)
The raw value is the solar height.
|
void |
predictFrom(double lastraw)
Predicts from the actual data point to the near future.
|
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.
|
addWeatherListener, conductOneMeasure, currentlyClear, generateDataEvent, getSensorInitInfo, goodFromDerivative, goodFromPredict, goodFromSmooth, isDerivativeRetard, isPredictRetard, isRawRetard, isSmoothRetard, judgeWeather, notifyWeatherListener, removeWeatherListener, statusgetDerivativeFormat, getDerivativeToggleInfo, getDerivator, getLastDerivative, isDerivativeAdvise, isDeriving, newData, regetDerive, registerDerivatorgetLastSmooth, getSmoother, getSmoothToggleInfo, isSmoothAdvise, isSmoothing, regetSmooth, registerSmoother, smoothOnegetExtrapolation, getLastPredict, getPredictToggleInfo, init, isPredictAdvise, isPredicting, isReliable, regetPredictcumulateOne, getLastRaw, getLastTime, getMaxSize, getMemory, getSizeaddDataListener, addRmiDataListener, exit, getRawFormat, getSigmaFormat, removeDataListener, removeRmiDataListener, reportcancel, equals, getRawToggleInfo, getReading, getRespawn, getTimeOfRead, hashCode, initSensorTimerTask, isReady, regetRaw, setTimeOfRead, validReadingaddRmiErrorListener, createSensor, getBindName, getConvert, getSensorDescription, getSensorName, notifyErrorListener, removeRmiErrorListener, setConvert, toStringbindToRegistry, bindToRegistry, bindToRegistry, bindToRegistry, bindToRegistry, bindToRegistry, casterExit, casterExit, getBindName, isValid, unbindFromRegistry, unbindFromRegistrycontainsRemoteProperty, getRemoteProperties, getRemoteProperty, setRemotePropertyclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, 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, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringPropertiesfinalize, getClass, notify, notifyAll, wait, wait, waitcumulateOne, getLastRaw, getLastTime, getMaxSize, getSize, getTimeOfRead, regetRawbindToRegistry, isValid, unbindFromRegistrydefaultBoolean, 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, stringPropertiespublic static final String KEY_SOLHEIGHT
public static final String KEY_RISETWILIGHT
public static final String KEY_SETTWILIGHT
public static final String KEY_SIDEREAL
public static final String KEY_LATITUDE
public static final String KEY_SOLRA
public static final String KEY_SOLDEC
private static final double DEFRISETWILIGHT
private static final double DEFSETTWILIGHT
private static final String DEFSOLHEIGHT
private static final String DEFSIDEREAL
private static final String DEFLATITUDE
private static final String DEFSOLRA
private static final String DEFSOLDEC
private Value solz
private Value phi
private Value theta
private Value solra
private Value soldec
public SolHeightSensor(Map qualify) throws RemoteException
SolHeight value.RemoteExceptionpublic void registerParameter(Parameter what)
registerParameter in interface ParameterDependingpublic double readSensor()
readSensor in class TimerTaskSensorConvertToPhysicalprotected boolean goodFromRaw(double rawdummy)
#KEY_TWILIGHT.goodFromRaw in class WeatherSensorpublic boolean currentlyRetarding()
currentlyRetarding in interface WeatherJudgingcurrentlyRetarding in class WeatherSensorpublic long getMinClearUpTime()
getMinClearUpTime in interface WeatherJudginggetMinClearUpTime in class WeatherSensorpublic boolean validReading()
validReading in interface Telemeteringpublic void deriveAt(double raw)
deriveAt in interface DerivingderiveAt in class DerivativeSensorraw - The actual solar height in degrees.public void predictFrom(double lastraw)
predictFrom in interface PredictingpredictFrom in class PredictiveSensorlastraw - The current raw measurement