public class SimulatorWeather extends WeatherStation
MasterMind in simulation mode, thus:
MasterMind.KEY_SIMULATE key to true.SimulatorSequencer as the sequencer in the master mind,
key MasterMind.KEY_SEQUENCER.MasterMind.KEY_LOCALWEATHER key should point to a
SimulatorWeather instance.SettableTime type.SolHeightSensor
that, in turn, depends on a SettableTime value. For
convenience it also toggles the KEY_GOODWEATHER good-weather trigger
in the master mind's parameter set.SimulatorSequencerWeatherStation.Manage, WeatherStation.Run, WeatherStation.WeatherStationDataPropertyResources.Load, PropertyResources.URLResourceWeatherSurveying.DataBlock| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFGOODWEATHER
The default name of the good-weather parameter.
|
private static String |
DEFSOLZ
The default name of the solz-parameter.
|
private static String |
DEFTIME
The default name of the time parameter.
|
private static double |
DEFTOGGLEHEIGHT
The default z solar toggle value.
|
private Trigger |
goodweather
The good-weather trigger.
|
static String |
KEY_GOODWEATHER
The name for the good weather trigger.
|
static String |
KEY_SOLZ
The name for the solar heigth parameter.
|
static String |
KEY_TARGETNAME
The name for the target name parameter.
|
static String |
KEY_TIME
The name for the time value.
|
static String |
KEY_TOGGLEHEIGHT
The key to the good-weather toggle height of the sun.
|
private SolHeight |
solz
The solar height parameter.
|
private Parameter |
target
The target name parameter, only used for logging.
|
private Value |
time
The time parameter, only used for logging.
|
KEY_BIND, KEY_DAEMON, KEY_DUMP, KEY_FILE, KEY_LIST, KEY_NAME, KEY_REPOSITORYALTERNATEHOST, ALTERNATEPORT, KEY_BINDNAME, 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 |
|---|
SimulatorWeather(Map<String,String> prop)
Constructs a new weather simulator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
advanceFor(long observingtime)
Checks what happens within the stated period of time in relation to
weather events.
|
protected void |
notifyWeatherListener(WeatherEvent good)
Additionally sets the good-weather trigger.
|
void |
registerGlobals(GlobalGrouping set)
Grabs the solar height from the parameter set to check for possible
advances.
|
addRmiWeatherListener, addSensor, conciseStatus, containsRemoteProperty, exit, extendedStatus, get, getAllSensorNames, getAllSensors, getCurrentlyRetarding, getCurrentWeather, getDataSensor, getElapsedToggleTime, getFormatted, getLastToggleTime, getName, getRemainsBadMaximum, getRemainsBadMinimum, getRemainsGoodMaximum, getRemainsGoodMinimum, getRemoteProperties, getRemoteProperty, getSensor, getStatus, getString, getTrigger, init, isTrue, registerSensorDriver, removeRmiWeatherListener, removeSensor, set, setRemoteProperty, setTrigger, startSensors, toggleTrigger, toString, weatherChangedaddWeatherListener, createWeatherSurveyor, removeWeatherListener, statusbindToRegistry, bindToRegistry, bindToRegistry, bindToRegistry, bindToRegistry, bindToRegistry, casterExit, casterExit, getBindName, getBindName, isValid, unbindFromRegistry, unbindFromRegistryclone, 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, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbindToRegistry, 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_SOLZ
public static final String KEY_GOODWEATHER
public static final String KEY_TIME
public static final String KEY_TARGETNAME
public static final String KEY_TOGGLEHEIGHT
private static final String DEFSOLZ
private static final String DEFGOODWEATHER
private static final String DEFTIME
private static final double DEFTOGGLEHEIGHT
private SolHeight solz
private Trigger goodweather
private Value time
private Parameter target
public void registerGlobals(GlobalGrouping set)
KEY_GOODWEATHER should
point to a settable trigger. The time is found in KEY_TIME. For
logging purpose, we might also assing the KEY_TARGETNAME
parameter.registerGlobals in interface GlobalDependingregisterGlobals in class WeatherStationpublic boolean advanceFor(long observingtime)
MasterErrorHandler on
target picks and by the MasterMind if no targets are
available.protected void notifyWeatherListener(WeatherEvent good)
notifyWeatherListener in class WeatherStationgood - The WeatherEvent to pass to the Listeners.