Make sure to have installed Python 3.10
or above.
You also have to install SWI-Prolog for your platform.
Clone the repository and all its submodules by executing
git clone --recursive https://github.com/di-unipi-socc/LambdaFogSim.git
Then open a terminal inside the project root folder and follow the next steps.
It's recommended to setup a virtual enviroment where launch the application.
Install virtualenv
via pip in order to be able to create one. You can do it by executing
pip3 install virtualenv
Run this command inside the project's root in order to setup a virtual enviroment.
virtualenv -p python3 venv && source venv/bin/activate
Run this command to install requirements
pip install -r requirements.txt
Inside the project root run the simulator with the following command:
python3 src/lambdafogsim.py
-v, --verbose
verbose mode
-c, --config <configuration file>
define your own configuration file. Default is config.py
-p, --physical <infrastructure configuration file>
define your own physical infrastructure config file. Default is infrastructure_config.yaml
-l, --logical <Prolog infrastructure file>
logical infrastructure config file
Note
-p and -l options are mutually exclusive