public interface Scheduling extends PropertySupplying
getHighestTarget(globals.GlobalGrouping, java.util.Collection<stella.Appointable>): This method returns the target with the
highest priority in the moment this method was invoked. Additionally,
the scheduler should set globals refering to the target, like target
ra.registerMonitor(java.lang.Object) is intended to register an other object that
may wait for notification from the scheduler. It may be used for times where
no targets are available. This method is rather obsolete and replaced with
EventTrigger.registerMonitor(java.lang.Object).
stella.rmi.SchedulingControl interface.
For convenience an abstract AbstractScheduler is provided. This
class follows the recommended construction schema, taking a Properties
object as the single constructor argument.
CONFIG, KEY_CLASS| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalConstraint(Appointable.Constraint constraint)
Adds a global constraint to the scheduler.
|
Collection<Appointable.Constraint> |
getGlobalConstraints()
Returns all global constraints.
|
Appointable |
getHighestTarget(GlobalGrouping cond,
Collection<Appointable> lst)
Scans a specified set of target definitions for the target with the
highest priority within this set.
|
Collection<Appointable> |
getObservableTargets(GlobalGrouping cond,
Collection<Appointable> list)
Scans a specified set of targets and returns all of them that are
observable.
|
Object |
registerMonitor(Object waiter)
Registers an object for notification.
|
void |
removeAllGlobalConstraints()
Removes all global constraints.
|
void |
removeGlobalConstraint(Appointable.Constraint constraint)
Removes a global constraint.
|
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, stringPropertiesCollection<Appointable> getObservableTargets(GlobalGrouping cond, Collection<Appointable> list)
Appointable getHighestTarget(GlobalGrouping cond, Collection<Appointable> lst)
Object registerMonitor(Object waiter)
void addGlobalConstraint(Appointable.Constraint constraint)
getHighestTarget(globals.GlobalGrouping, java.util.Collection<stella.Appointable>) must also fulfill all
global constraints.void removeAllGlobalConstraints()
void removeGlobalConstraint(Appointable.Constraint constraint)
Collection<Appointable.Constraint> getGlobalConstraints()