SimD3Timeline

class SimD3Timeline(path: String, file: String, tick: Int) extends SimMetricsOutput with FileOutput

Outputs simulation metrics to a file using the d3-timeline format. Generates 1 file with a "-simdata.js" suffix. This can then be combined with the resources at https://github.com/PetrosPapapa/WorkflowFM-PEW/tree/master/resources/d3-timeline to render the timeline in a browser.

The timeline can display either virtual units of time or millisecond durations. If we choose the latter, we can provide the size of the virtual unit of time in milliseconds and all the durations will be scaled to that. For example, if our virtual unit of time is minutes, we need to provide a tick value of 60000.

Value Params
file

file name prefix

path

path to directory where the files will be placed

tick

the size of 1 unit of virtual time

trait (Long, SimMetricsAggregator) => Unit
class Object
trait Matchable
class Any

Value members

Concrete methods

override
def apply(totalTicks: Long, aggregator: SimMetricsAggregator): Unit
Definition Classes
Function2
def build(aggregator: SimMetricsAggregator, now: Long): String

Helps build the output with a static system time.

Helps build the output with a static system time.

def resourceEntry(res: ResourceMetrics, agg: SimMetricsAggregator): String
def simulationEntry(s: SimulationMetrics, agg: SimMetricsAggregator): String
def taskEntry(m: TaskMetrics): Option[String]

Inherited methods

Compose with another SimMetricsOutput in sequence.

Compose with another SimMetricsOutput in sequence.

Inherited from
SimMetricsOutput
@unspecialized
def curried: Long => SimMetricsAggregator => Unit
Inherited from
Function2
override
def toString(): String
Definition Classes
Function2 -> Any
Inherited from
Function2
@unspecialized
def tupled: (Long, SimMetricsAggregator) => Unit
Inherited from
Function2
def writeToFile(filePath: String, output: String): Unit
Inherited from
FileOutput