public class SeasonWeather extends SimpleTrigger implements ParameterDepending
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private CurrentTime |
current
The time parameter.
|
private static double |
DEFHOLDTIME
The default hold-time for bad-weather events in ms.
|
static String |
DEFNAME
The default name of this parameter.
|
private static String |
DEFSEASON
The default mapping of month-numbers to bad weather probabilities.
|
private static String |
DEFSOLHEIGHT
The default solz-parameter.
|
private static String |
DEFTIME
The default time parameter.
|
private static double |
DEFTWILIGHT
The default toggle value for the solar height.
|
private static Calendar |
GREGORIAN
We always use a gregorian calendar.
|
static String |
KEY_HOLDTIME
The hold-time of bad-weather
|
static String |
KEY_SEASON
The month-to-bad-weather probabilities as a look-up table.
|
static String |
KEY_SOLHEIGHT
The key mapping to the solz-paramter.
|
static String |
KEY_TIME
The key mapping to the time paramter.
|
static String |
KEY_TWILIGHT
The trigger value for the solz-parameter.
|
private double |
lasttime
The value of the time parameter when last queried.
|
private SolHeight |
solz
The solar height.
|
private Map |
weather
The mapping of month numbers to probabilities.
|
KEY_INITBOOLEANKEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWNKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
SeasonWeather(Map<String,String> prop)
Contructs a new season weather.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getTrigger()
Returns the extrapolated weather as a boolean.
|
void |
registerParameter(Parameter what)
Registers additional parameters.
|
double |
rescanned(String key,
String old,
String newval)
As any parameter depending instance we fail if the parameter we depend
on is now a different one.
|
getLastToggleTime, init, setTriggerget, getElapsedToggleTime, isTrue, set, toggleTriggercreateParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, overrideDefaultName, register, setName, toStringclone, 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, setObject, setProperties, setProperty, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreloadgetFormatted, getName, getStringdefaultBoolean, 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_TIME
public static final String KEY_SOLHEIGHT
public static final String KEY_TWILIGHT
public static final String KEY_HOLDTIME
public static final String KEY_SEASON
public static final String DEFNAME
private static final String DEFTIME
private static final String DEFSOLHEIGHT
private static final double DEFTWILIGHT
private static final double DEFHOLDTIME
private static final String DEFSEASON
private static final Calendar GREGORIAN
private final Map weather
private CurrentTime current
private double lasttime
private SolHeight solz
public double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class SimpleTriggerpublic void registerParameter(Parameter what)
registerParameter in interface ParameterDependingpublic Boolean getTrigger()
getTrigger in interface TriggeringgetTrigger in class SimpleTrigger