Quick Start
Analysing and plotting an OMNeT++ signal
If one just wants to create a simple line/boxplot, this can be easily achieved
by making a copy of examples/lineplot.yaml
and changing a few paths,
the signal name and the name associated with the dataset holding the signal
data. Additionally, you may have to add a tag for each parameter of your study.
In evaluation
:
in
tags
:change
sensors
to the name of the parameter of your simulation study and change the associatedregex
andtransform
to extract the value of the parameter. If your parameter is not listed initerationvars
but therunAttr
orrunParam
table, change theiterationvars
toattributes
/parameters
.
in
extractors
:change the name of the extraction task from
cbr
to the name you want to assign to the extracted signal datachange
input_files
to point to the data fileschange
signal
to thevectorName
of your signalchange
alias
fromcbr
to the name of the column the extracted data should be placed inchange the
sensors
inadditional_tags
to the name of your parameter
in
exporter
:change
dataset_name
to the name you assigned inextractors
change
output_filename
to point to the path the data should be saved to
In plot
:
in
reader
:change the name of the extraction task from
cbr
to the name you want to assign to the extracted signal datachange
input_files
to point to the data files
in
tasks
:change the name of the plotting task from
cbr
to a unique namechange
dataset_name
to the name you assigned inreader
change
x
to the name of the study parameter to plot on the x-axis, if the rate of vehicle equipment is not applicablechange
y
to the name of thealias
assigned inextractors
change
hue
to the name of the tag defined intags
if there are additional study parameters, place one each in
row
andcolumn
. This will generate a plot with multiple columns/rows, one for each value of the assigned column/row variable.
change
output_file
to point to the path of the file the plot should be saved toif one wants a boxplot instead of a lineplot, change the
plot_type
tobox
Now the recipe can be processed by run_recipe.py
and should produce
a lineplot.
Using pipenv as package manager:
pipenv run python run_recipe.py <path to the recipe>
Analyzing and plotting from SQLite databases
TBD