TaskMetrics

case
class TaskMetrics(id: UUID, task: String, simulation: String, priority: Int, created: Long, started: Option[Long], duration: Long, cost: Double, resources: Seq[String], aborted: Boolean)

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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def abort(t: Long): TaskMetrics

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.

def addCost(addedCost: Double): 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.

def delay: Long

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.

def finished: Option[Long]

Returns the time of completion (if any).

Returns the time of completion (if any).

def fullName: String

Returns the full task and simulation name.

Returns the full task and simulation name.

def start(st: Long): TaskMetrics

Sets the starting time for the TaskInstance.

Sets the starting time for the TaskInstance.

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product