Task Dispatcher
Constructors
Properties
Functions
Can be used to cause performance statistics to be collected about any transient task processors used by the dispatcher. This function creates model elements. The normal use of this function would be within an init block in order to configure behavior prior to the running of any experiments.
Called to cause a task to be sent to the supplied processor. If the dispatcher has a task for dispatching the task is selected via the nextTask() function and then the processor is told to receive the task for processing.
This method should be overridden by subclasses that need actions performed to initialize prior to a replication. It is called once before each replication occurs if the model element wants initialization. It is called after beforeReplication() is called
Receives tasks and attempts to dispatch them. Selects a processor via the selectProcessor() function and then dispatches the task to the processor with the dispatch() function.
Registers the processor to receive tasks that are dispatched by the dispatcher.
Selects a processor to receive the next task to be dispatched. The default is to select the first processor that is idle and is not shutdown. Idle implies that the processor is not failed (in-repair), busy, or inactive.
Called when a formally dispatched task is completed.
Unregisters the processor so that it no longer receives tasks from the dispatcher.