SimulationMetrics

case
class SimulationMetrics(name: String, started: Long, duration: Long, delay: Long, tasks: Int, cost: Double, result: Option[String])

Metrics for a simulation that has already started.

Value Params
cost

the total cost associated with the simulation so far

delay

the sum of all delays for all involved TaskInstances

duration

the virtual duration of the simulation

name

the unique name of the simulation

result

a String representation of the returned result from the simulation, or scala.None if it still running. In case of failure, the field is populated with the localized message of the exception thrown

started

the virtual timestamp when the simulation started executing

tasks

the number of TaskInstances associated with the simulation so far

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def addCost(c: Double): SimulationMetrics

Adds some cost to the total cost.

Adds some cost to the total cost.

Adds some delay to the total delay.

Adds some delay to the total delay.

Adds some time to the total duration.

Adds some time to the total duration.

def done(res: String, time: Long): SimulationMetrics

Updates the metrics given that the simulation has completed with a certain result.

Updates the metrics given that the simulation has completed with a certain result.

Value Params
res

the result of the simulation or localized message of the exception in case of failure

time

the virtual timestamp when the simulation finished

Updates the metrics given a new TaskInstance that is created as part of the simulation.

Updates the metrics given a new TaskInstance that is created as part of the simulation.

Inherited methods

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