Metrics for a simulated TaskInstance that consumed virtual time.
- Value Params
- cost
the cost associated with the TaskInstance
- created
the virtual timestamp when the TaskInstance was created and entered the Coordinator
- duration
the virtual duration of the TaskInstance
- id
the unique ID of the TaskInstance
- priority
the priority of the TaskInstance
- resources
the list of names of the TaskResources this TaskInstance used
- simulation
the name of the simulation the TaskInstance belongs to
- started
the virtual timestamp when the TaskInstance started executing, or scala.None if it has not started yet
- task
the name of the TaskInstance
- Companion
- object
Value members
Concrete methods
Marks the TaskInstance as aborted.
Marks the TaskInstance as aborted.
Updates its duration to reflect the aborted time.
- Value Params
- t
The time of abortion.
- Returns
The updated TaskMetrics.
Includes additional costs such as resource costs.
Includes additional costs such as resource costs.
- Value Params
- addedCost
The extra cost to add.
- Returns
The updated TaskMetrics.
Calculates the task delay as the difference of the creation and starting times.
Calculates the task delay as the difference of the creation and starting times.