SimCSVFileOutput

class SimCSVFileOutput(path: String, name: String) extends SimMetricsStringOutput with FileOutput

Outputs simulation metrics to files using a standard CSV format. Generates 3 CSV files,

  1. One for tasks with a "-tasks.csv" suffix,
  2. One for simulations with a "-simulations.csv" suffix.
  3. One for resources with a "-resources.csv" suffix.
Value Params
name

file name prefix

path

path to directory where the files will be placed

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

Value members

Concrete methods

def apply(totalTicks: Long, aggregator: SimMetricsAggregator): Unit

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
def resCSV(separator: String)(m: ResourceMetrics): String

String representation of a ResourceMetrics instance.

String representation of a ResourceMetrics instance.

Value Params
m

the ResourceMetrics instance to be handled

separator

a string (such as a space or comma) to separate the values

Inherited from
SimMetricsStringOutput
def resHeader(separator: String): String

The field names for ResourceMetrics.

The field names for ResourceMetrics.

Value Params
separator

a string (such as a space or comma) to separate the names

Inherited from
SimMetricsStringOutput
def resources(aggregator: SimMetricsAggregator, separator: String, lineSep: String): String

Formats all ResourceMetrics in a SimMetricsAggregator in a single string.

Formats all ResourceMetrics in a SimMetricsAggregator in a single string.

Value Params
aggregator

the SimMetricsAggregator to retrieve the metrics to be formatted

lineSep

a string (such as a new line) to separate resources

separator

a string (such as a space or comma) to separate values

Inherited from
SimMetricsStringOutput
def simCSV(separator: String)(m: SimulationMetrics): String

String representation of a SimulationMetrics instance.

String representation of a SimulationMetrics instance.

Value Params
m

the SimulationMetrics instance to be handled

separator

a string (such as a space or comma) to separate the values

Inherited from
SimMetricsStringOutput
def simHeader(separator: String): String

The field names for SimulationMetrics.

The field names for SimulationMetrics.

Value Params
separator

a string (such as a space or comma) to separate the names

Inherited from
SimMetricsStringOutput
def simulations(aggregator: SimMetricsAggregator, separator: String, lineSep: String): String

Formats all SimulationMetrics in a SimMetricsAggregator in a single string.

Formats all SimulationMetrics in a SimMetricsAggregator in a single string.

Value Params
aggregator

the SimMetricsAggregator to retrieve the metrics to be formatted

lineSep

a string (such as a new line) to separate simulations

separator

a string (such as a space or comma) to separate values

Inherited from
SimMetricsStringOutput
def taskCSV(separator: String, resSeparator: String)(m: TaskMetrics): String

String representation of a TaskMetrics instance.

String representation of a TaskMetrics instance.

Value Params
m

the TaskMetrics instance to be handled

resSeparator

a string (such as a space or comma) to separate the list of names of TaskResources in TaskMetrics

separator

a string (such as a space or comma) to separate the values

Inherited from
SimMetricsStringOutput
def taskHeader(separator: String): String

The field names for TaskMetrics.

The field names for TaskMetrics.

Value Params
separator

a string (such as a space or comma) to separate the names

Inherited from
SimMetricsStringOutput
def tasks(aggregator: SimMetricsAggregator, separator: String, lineSep: String, resSeparator: String): String

Formats all TaskMetrics in a SimMetricsAggregator in a single string.

Formats all TaskMetrics in a SimMetricsAggregator in a single string.

Value Params
aggregator

the SimMetricsAggregator to retrieve the metrics to be formatted

lineSep

a string (such as a new line) to separate tasks

resSeparator

a string (such as a space or comma) to separate the list of names of TaskResources in TaskMetrics

separator

a string (such as a space or comma) to separate values

Inherited from
SimMetricsStringOutput
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

Concrete fields

val lineSep: String
val separator: String

Inherited fields

val nullValue: String

A string representing null values.

A string representing null values.

Inherited from
SimMetricsStringOutput