VILLASframework
Modular co-simulation framework
|
The VILLASnode configuration consists of a a single file.
For a collection of example configuration files see: https://git.rwth-aachen.de/acs/public/villas/node/tree/master/etc.
VILLASnode currently supports two config file formats:
Note: Consider using the villas conf2json command to migrate your old configurations to JSON.
At the top level, the configuration file consists of these sections:
VILLASnode comes with a lot of existing configurations which can be used for inspiration: https://git.rwth-aachen.de/acs/public/villas/node/-/tree/master/etc
VILLASnode substitutes any environment variables in you JSON and libconfig configuration files.
To replace environment variables you must use the following syntax within any string value of your config: ${MYENV_VAR}
.
Note: Non-string values can currently not be subsituted by environment variables!
VILLASnode can include other files into you configuration. This allows you to better structure and reuse parts of your configuration (e.g. the node definitions).
File inclusion is handled via a special key in JSON objects named @include
. The value of this key must point to an existing file on your file system.
Note: libconfig supports inclusion of other files out of the box via directives. So this tip is mostly useful for JSON configuration files.
params.json
nodes.json
experiment1.json