com.workflowfm.proter.metrics
Type members
Classlikes
Helper to write stuff to a file.
Helper to write stuff to a file.
- Todo
Move somewhere else as a utility?
Metrics for at TaskResource.
Metrics for at TaskResource.
- Value Params
- busyTime
the total amount of virtual time that the TaskResource has been busy, i.e. attached to a TaskInstance
- cost
the total cost associated with this TaskResource
- idleTime
the total amount of virtual time that the TaskResource has been idle, i.e. not attached to any TaskInstance
- name
the unique name of the TaskResource
- tasks
the number of different TaskInstances that have been attached to this TaskResource
- Companion
- object
Outputs simulation metrics to files using a standard CSV format. Generates 3 CSV files,
Outputs simulation metrics to files using a standard CSV format. Generates 3 CSV files,
- One for tasks with a "-tasks.csv" suffix,
- One for simulations with a "-simulations.csv" suffix.
- One for resources with a "-resources.csv" suffix.
- Value Params
- name
file name prefix
- path
path to directory where the files will be placed
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.
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
A ResultHandler that collects simulation metrics to a SimMetricsAggregator.
A ResultHandler that collects simulation metrics to a SimMetricsAggregator.
Returns the SimMetricsAggregator with all the data as a result when done.
Outputs the result using an (optional) SimMetricsOutput.
- Value Params
- output
The SimMetricsOutput to use, if any.
Manipulates a SimMetricsAggregator to produce some output via side-effects.
Manipulates a SimMetricsAggregator to produce some output via side-effects.
As a function, takes 2 arguments:
- a scala.Long representing the total virtual time elapsed
- the SimMetricsAggregator to act upon
- Companion
- object
Contains helpful formatting shortcut functions.
Contains helpful formatting shortcut functions.
- Companion
- class
A SimMetricsOutput consisting of a Queue of SimMetricsOutputs to be run sequentially.
A SimMetricsOutput consisting of a Queue of SimMetricsOutputs to be run sequentially.
- Companion
- object
Generates a string representation of the metrics using a generalized CSV format.
Generates a string representation of the metrics using a generalized CSV format.
Metrics for a simulation that has already started.
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
Metrics for a simulated TaskInstance that consumed virtual time.
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