stella
Class AbstractSequencer<E>

java.lang.Object
  extended by util.PropertyContainer
      extended by util.rmi.RmiPropertyContainer
          extended by util.rmi.AbstractRmiCaster
              extended by stella.CastingContainer
                  extended by stella.AbstractSequencer<E>
All Implemented Interfaces:
Cloneable, Runnable, Remote, ClusterDepending, ReplySubscriber, Sequencing<E>, CancelRunnable, ExitCleaning, Initializable, PropertyBearing, RmiCaster, RmiPropertyBearing
Direct Known Subclasses:
DummySequencer, LoopingSequencer, SimulatorSequencer, XMLSequencer

public abstract class AbstractSequencer<E>
extends CastingContainer
implements Sequencing<E>

An abstract implementation of a sequencing class. This class only specifies a (protected) constuctor taking a Map object as the single argument along with accessor methods to these properties. A static method deriving an actual instance of a sequencing class using the class name provided in the Map is also provided.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyContainer
PropertyContainer.URLResource
 
Field Summary
 
Fields inherited from class util.rmi.AbstractRmiCaster
ALTERNATEHOST, ALTERNATEPORT, KEY_BINDNAME, KEY_EXPORTPORT, KEY_REGISTRYHOST, KEY_REGISTRYPORT
 
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 AbstractSequencer(Map<String,String> prop)
          Constructs a new sequencing instance with the specified properties.
 
Method Summary
static Sequencing createSequencer(Map<String,String> prop)
          Constructs a new sequencing instance using the mapping of the PropertyBearing.KEY_CLASS to the class name to derive the class to instantiate.
 
Methods inherited from class stella.CastingContainer
addErrorListener, addRmiErrorListener, exit, isValid, notifyErrorListener, removeErrorListener, removeRmiErrorListener, sendError, sendError, sendError, sendStatus, sendStatus, sendStatus
 
Methods inherited from class util.rmi.AbstractRmiCaster
bindAlternate, bindToRegistry, bindToRegistry, bindToRegistry, casterExit, casterExit, getBindName, getBindName, unbindFromRegistry, unbindFromRegistry
 
Methods inherited from class util.rmi.RmiPropertyContainer
containsRemoteProperty, getRemoteProperties, getRemoteProperty, setRemoteProperty
 
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.Sequencing
abort, append, getStepsForTarget, isCancel, load, prepend, registerLauncher, registerRender, start
 
Methods inherited from interface util.CancelRunnable
cancel, getAsociatedThread, maxTimeToCancel
 
Methods inherited from interface java.lang.Runnable
run
 
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 stella.ReplySubscriber
forward
 
Methods inherited from interface stella.ClusterDepending
registerCluster
 

Constructor Detail

AbstractSequencer

protected AbstractSequencer(Map<String,String> prop)
Constructs a new sequencing instance with the specified properties. The PropertyBearing.KEY_CLASS is always specified when this constructer is used.

Method Detail

createSequencer

public static final Sequencing createSequencer(Map<String,String> prop)
Constructs a new sequencing 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 Sequencing 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.