TaskDispatcher

open inner class TaskDispatcher(parent: ModelElement, name: String? = null, discipline: Queue.Discipline = Discipline.FIFO) : ModelElement(source)

Constructors

Link copied to clipboard
constructor(parent: ModelElement, name: String? = null, discipline: Queue.Discipline = Discipline.FIFO)

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.

Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard

Registers the processor to receive tasks that are dispatched by the dispatcher.

Link copied to clipboard

Unregisters the processor so that it no longer receives tasks from the dispatcher.