public class ParameterSet extends GlobalSet implements ParameterClustering, TargetProviderDepending, ErrorListener
Parameters to a set. On construct
the provided properties should either contain a GlobalSet.KEY_LIST pointing
to a comma separated global properties list, or a GlobalSet.KEY_FILE which
should point to a file in the users personal java configuration
directory Path where the names of the properties files
for all globals that comprise this global set should be
listed. Each entry found
is then used to generated a new Map object and pass it to the
AbstractParameter.createParameter(java.util.Map<java.lang.String, java.lang.String>) factory method. Additinally to
the normal
global construction the global properties are scanned for the necessity to
register additional globals to allow value generating capabilities of
the newly generated global to unfold.
GlobalSet.AstronomicalPropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static boolean |
DEFPIPEONLY
The default pipe-only behaviour.
|
private List<Driver> |
drivers
The list of registered drivers.
|
private ErrorEvent |
error
The last error event that has been registered to this parameter set.
|
static String |
KEY_PIPEONLY
If pointing to true, only error events with the pipe flag are used.
|
private WeatherSurveying |
weather
The weather surveying instance registered to this parameter set.
|
KEY_DUMP, KEY_FILE, KEY_LIST, KEY_TIMEPARAMETER, PARENCLOSE, PARENOPENKEY_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 |
|---|
ParameterSet(Map<String,String> info)
Constructs a new global set with the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addGlobalDependency(Parameter test) |
static ParameterClustering |
createParameterClustering(Map<String,String> info) |
void |
errorOccured(ErrorEvent ee)
Receiving the error event as a listener.
|
ErrorEvent |
getError()
Returns the last error event registered.
|
WeatherSurveying |
getWeatherSurveyor()
Returns the last weather station registered to this parameter set.
|
boolean |
registerDriver(Driver io)
Registers a driver to this parameter set.
|
void |
registerProvider(TargetProviding<?> list)
Registers a collection of active targets to this cluster.
|
void |
setCommandLauncher(CommandLaunching... launch)
Registers a command launcher to this parameter set.
|
void |
setError(ErrorEvent ee)
Sets the error event for
ErrorDependingParameters. |
void |
setWeatherSurveyor(WeatherSurveying sensors)
Binds a weather surveyor to this parameter set.
|
addParameter, change, createInstance, createInstance, createInstance, currentTimeMillis, exit, get, getAllParameterNames, getAllParameters, getParameter, getTarget, getTrigger, getValue, init, registerTarget, reload, removeParameter, rescanned, rmiGet, rmiGetAllParameterNames, set, setTrigger, setValue, toggleTrigger, toStringcreateParameterCluster, getForclone, 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, removeProperty, requires, setObject, setProperties, setProperty, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTargetaddParameter, change, currentTimeMillis, get, getAllParameterNames, getAllParameters, getParameter, getTrigger, getValue, removeParameter, set, setTrigger, setValue, toggleTriggerdefaultBoolean, 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, stringPropertiesregisterTargetpublic static final String KEY_PIPEONLY
private static final boolean DEFPIPEONLY
private List<Driver> drivers
private WeatherSurveying weather
private ErrorEvent error
public ParameterSet(Map<String,String> info)
GlobalSet.KEY_LIST or the GlobalSet.KEY_FILE for
properties of the globals.
Entries in the file are one properties file per line, lines
starting with '#' are ignored.
This constructor calls the GlobalSet.init() method if the provided file
could successfully be parsed into a collection of proprties file names.
public static ParameterClustering createParameterClustering(Map<String,String> info)
public void registerProvider(TargetProviding<?> list)
TargetProviderDepending.registerProvider in interface TargetProviderDependingpublic boolean registerDriver(Driver io)
registerDriver in interface DriverDependingpublic void setCommandLauncher(CommandLaunching... launch)
StatusRequesting parameter found.setCommandLauncher in interface ParameterClusteringpublic void setWeatherSurveyor(WeatherSurveying sensors)
SensorValue type are bound to
their sensors here.setWeatherSurveyor in interface ParameterClusteringpublic WeatherSurveying getWeatherSurveyor()
getWeatherSurveyor in interface ParameterClusteringpublic void setError(ErrorEvent ee)
ErrorDependingParameters.setError in interface ParameterClusteringpublic ErrorEvent getError()
getError in interface ParameterClusteringpublic void errorOccured(ErrorEvent ee)
ErrorDependingParameters of this cluster.KEY_PIPEONLY flag is true, only error events received
that have the pipe flag raised are passed to the setError(stella.ErrorEvent)
method.errorOccured in interface ErrorListenerprotected void addGlobalDependency(Parameter test)
addGlobalDependency in class GlobalSet