Task

abstract inner class Task(val taskType: TaskProcessingSystem.TaskType = TaskType.WORK) : ProcessModel.Entity(source)

Represents something that must be executed by a TaskProcessor.

Parameters

taskType

the type of task

Inheritors

Constructors

Link copied to clipboard
constructor(taskType: TaskProcessingSystem.TaskType = TaskType.WORK)

Properties

Link copied to clipboard

The deadline may be used by the task processor to assist with task selection

Link copied to clipboard

The elapsed time taken by the task, end time minus start time

Link copied to clipboard

The time that the task ended. Double.NaN if never started or ended.

Link copied to clipboard

The time that the task started. Double.NaN if never started.

Link copied to clipboard

The provider that supplied the task for processing

Link copied to clipboard
abstract val taskProcess: KSLProcess

The process routine defined for the task.

Link copied to clipboard

The processor that executed the task's process

Link copied to clipboard

Functions

Link copied to clipboard

Called by the processor immediately after the task completes and before the sender is notified of completion

Link copied to clipboard
open fun beforeTaskStart()

Called by the processor immediately before starting the task