A generator/factory of tasks (specifically TaskInstances).
As a case class, it can be easily manipulated dynamically to alter its values.
Uses Distributions for the duration and cost. These may be based on random variables. The actual values are sampled at task creation time.
Although typically only 1 task is generated, in principle it can generate multiple task instances with the same properties. However, each task generated will have different samples of the Distributions.
- Value Params
The generator of the cost.
A custom creation time. Negative values correspond to the current time.
The generator of the duration.
An optional unique id of the task. Otherwise a random ID will be used.
The TaskInstance.interrupt property of the task.
The earliest possible starting time of the task.
The name of the task.
The explicit priority of the task.
The resources of this task