stella
Class AbstractParameterCluster

java.lang.Object
  extended by util.PropertyContainer
      extended by stella.AbstractParameterCluster
All Implemented Interfaces:
DriverDepending, Cloneable, ParameterClustering, TargetDepending, Initializable, PropertyBearing
Direct Known Subclasses:
ParameterSet

public abstract class AbstractParameterCluster
extends PropertyContainer
implements ParameterClustering

An abstract implementation of parameter watching. This class provides a (protected) constructor out of a single Map object. Additionally, a static createParameterCluster(java.util.Map) method is provided.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyContainer
PropertyContainer.URLResource
 
Field Summary
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES
 
Fields inherited from interface util.PropertyBearing
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Constructor Summary
protected AbstractParameterCluster(Map prop)
          Constructs a new parameter watching instance with the specified properties.
 
Method Summary
static ParameterClustering createParameterCluster(Map prop)
          Constructs a new parameter watching instance using the mapping of the PropertyBearing.KEY_CLASS to the class name to derive the class to instantiate.
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, clone, createFrom, createFrom, createFrom, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getLocalClassLoader, getLocalized, getLocalized, getLocalizedString, getLocalizedString, getProperties, getPropertiesToKey, getPropertiesToKey, getProperty, getResource, getResourceAsStream, getResourceFromKey, getResources, has, init, isNew, keyCreate, keyCreate, parseObject, reload, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface stella.ParameterClustering
addParameter, change, get, getAllParameterNames, getAllParameters, getError, getParameter, getTarget, getTrigger, getValue, getWeatherSurveyor, removeParameter, set, setCommandLauncher, setError, setTrigger, setValue, setWeatherSurveyor, toggleTrigger
 
Methods inherited from interface util.PropertyBearing
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getLocalized, getProperties, getProperty, getResource, getResourceAsStream, getResources, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 
Methods inherited from interface io.DriverDepending
registerDriver
 
Methods inherited from interface stella.TargetDepending
registerTarget
 

Constructor Detail

AbstractParameterCluster

protected AbstractParameterCluster(Map prop)
Constructs a new parameter watching instance with the specified properties. The PropertyBearing.KEY_CLASS is always set when this constructer is used.

Method Detail

createParameterCluster

public static final ParameterClustering createParameterCluster(Map prop)
Constructs a new parameter watching instance using the mapping of the PropertyBearing.KEY_CLASS to the class name to derive the class to instantiate. If this property is defined, a new parameter watching instance with the stated class name is created, the supplied properties used as an argument in the constructor. Can throw a lot of exceptions if unsuccessful.