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
sensorsto the name of the parameter of your simulation study and change the associatedregexandtransformto extract the value of the parameter. If your parameter is not listed initerationvarsbut therunAttrorrunParamtable, change theiterationvarstoattributes/parameters.
in
extractors:change the name of the extraction task from
cbrto the name you want to assign to the extracted signal datachange
input_filesto point to the data fileschange
signalto thevectorNameof your signalchange
aliasfromcbrto the name of the column the extracted data should be placed inchange the
sensorsinadditional_tagsto the name of your parameter
in
exporter:change
dataset_nameto the name you assigned inextractorschange
output_filenameto point to the path the data should be saved to
In plot:
in
reader:change the name of the extraction task from
cbrto the name you want to assign to the extracted signal datachange
input_filesto point to the data files
in
tasks:change the name of the plotting task from
cbrto a unique namechange
dataset_nameto the name you assigned inreaderchange
xto the name of the study parameter to plot on the x-axis, if the rate of vehicle equipment is not applicablechange
yto the name of thealiasassigned inextractorschange
hueto the name of the tag defined intagsif there are additional study parameters, place one each in
rowandcolumn. This will generate a plot with multiple columns/rows, one for each value of the assigned column/row variable.
change
output_fileto point to the path of the file the plot should be saved toif one wants a boxplot instead of a lineplot, change the
plot_typetobox
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