stella.util
Class HighestTarget

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.util.HighestTarget
All Implemented Interfaces:
Cloneable, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class HighestTarget
extends PropertyBundles
implements ExitCleaning

Selects the highest target out of a list of targets. Thus, It must have a targetlist parameter, a set of parameters, and a scheduler instance.


Nested Class Summary
static class HighestTarget.Current
          Selects the currently highest target.
static class HighestTarget.Fake
          Selects the currently highest and fakes some parameters, if possible
static class HighestTarget.File
          Selects the currently highest and fakes some parameters, if possible.
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
static String KEY_SCHEDULER
          The key matching to the properties of the scheduler.
static String KEY_SET
          The key matching to the properties of the global parameter set.
static String KEY_TARGETLIST
          The key matching to the target list parameter.
private  TargetProviding list
          The target source.
private  Scheduling scheduler
          The actual scheduling object used.
private  ParameterClustering set
          The global parameter set.
 
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 util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
HighestTarget(Map prop)
          Constructs a new master mind with the given properties.
 
Method Summary
 void exit()
          On exit, cancel me and exit all exit-cleaning sub-objects.
 TargetDefinition getHighest()
          The run method of the master mind.
 void init()
          Inits the master mind.
 
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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
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
 

Field Detail

KEY_SCHEDULER

public static final String KEY_SCHEDULER
The key matching to the properties of the scheduler.

See Also:
Constant Field Values

KEY_SET

public static final String KEY_SET
The key matching to the properties of the global parameter set.

See Also:
Constant Field Values

KEY_TARGETLIST

public static final String KEY_TARGETLIST
The key matching to the target list parameter.

See Also:
Constant Field Values

scheduler

private Scheduling scheduler
The actual scheduling object used.


set

private ParameterClustering set
The global parameter set. Used for scheduling and sequencing.


list

private TargetProviding list
The target source.

Constructor Detail

HighestTarget

public HighestTarget(Map prop)
Constructs a new master mind with the given properties. Initializes and starts the mastermind in two separated methods, #initRequired and #initOptional before #startMaster.

Method Detail

init

public void init()
Inits the master mind. Does not start the master, this must be done explicetly with a call to #startMaster.

Specified by:
init in interface Initializable
Overrides:
init in class PropertyResources

exit

public void exit()
On exit, cancel me and exit all exit-cleaning sub-objects.

Specified by:
exit in interface ExitCleaning

getHighest

public TargetDefinition getHighest()
The run method of the master mind. This method loops forever until the cancel method is called. It does the following: