|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
util.rmi.RmiPropertyContainer
util.rmi.AbstractRmiCaster
stella.sensor.AbstractWeatherSurveyor
stella.sensor.WeatherStation
stella.util.SimulatorWeather
public class SimulatorWeather
This class is the base class for simple or more sophisticated
average-weather predictors to use in simulations of STELLA action.
Normally, you will use it with a 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.
SimulatorSequencer| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class stella.sensor.WeatherStation |
|---|
WeatherStation.Manage, WeatherStation.Run, WeatherStation.WeatherStationData |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Nested classes/interfaces inherited from interface stella.sensor.WeatherSurveying |
|---|
WeatherSurveying.DataBlock |
| Field Summary | |
|---|---|
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 |
DEFTARGETNAME
The default name of the time 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. |
| Fields inherited from class stella.sensor.WeatherStation |
|---|
KEY_BIND, KEY_DAEMON, KEY_DUMP, KEY_FILE, KEY_LIST, KEY_NAME, KEY_REPOSITORY |
| Fields inherited from class util.rmi.AbstractRmiCaster |
|---|
ALTERNATEHOST, ALTERNATEPORT, KEY_BINDNAME, KEY_EXPORTPORT, KEY_REGISTRYHOST, KEY_REGISTRYPORT |
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface stella.rmi.RmiWeatherCaster |
|---|
NAMING_EXTENSION |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
SimulatorWeather(Map prop)
Constructs a new weather simulator. |
|
| Method Summary | |
|---|---|
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 |
registerCluster(ParameterClustering set)
Grabs the solar height from the parameter set to check for possible advances. |
| Methods inherited from class stella.sensor.AbstractWeatherSurveyor |
|---|
addWeatherListener, createWeatherSurveyor, removeWeatherListener, status |
| Methods inherited from class util.rmi.AbstractRmiCaster |
|---|
bindAlternate, bindToRegistry, bindToRegistry, bindToRegistry, casterExit, casterExit, getBindName, getBindName, isValid, unbindFromRegistry, unbindFromRegistry |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| 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 class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.rmi.RmiCaster |
|---|
bindToRegistry, isValid, unbindFromRegistry |
| 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 |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Field Detail |
|---|
public 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 String DEFTARGETNAME
private static final double DEFTOGGLEHEIGHT
private SolHeight solz
private Trigger goodweather
private Value time
private Parameter target
| Constructor Detail |
|---|
public SimulatorWeather(Map prop)
| Method Detail |
|---|
public void registerCluster(ParameterClustering 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.
registerCluster in interface ClusterDependingregisterCluster 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||