Commit 8220fcc8 authored by cif2cif's avatar cif2cif
Browse files

Actualizado README con paramámteros descritos

parent a6a14b40
......@@ -18,14 +18,23 @@ The directory `securegrid-simulator` contains the data simulator for SecureGrid.
The directory `data` contains the grid configuration (`demo_lv_grid.json`) and power profiles (`pv_10kw.csv` and `pv_30kw.csv`).
## Configuration
- variable `PROFILE_FILE` of the file `securegrid-simulator.py`: power profile file for the simulation
- variable `PV_DATA` of the file `securegrid-simulator.py`: power data for the simulation
- variable `GRID_NAME` of the file `securegrid-simulator.py`: grid network topology
- variable `OUTPUT_FILE` of the file `securegrid-simulator.py`: name of the output hdf5 file of the simulation
## Simulation parameters
Several parametrs can be configured to generate a simulation:
- variable `nAttacks` of the `securegrid-simulator.py`: how many houses of the simulation suffer an attack.
- variable `attackPercentageValue` of the `attack.py`: percentage of the original value at which the power consumption values of the houses will be modified
- variable `attackTime` of the `attack.py`: moment in which the attack starts. This variable represents the percentage of the course of the simulation in which the attack will begin.
- variable `nAttacks` of the file `securegrid-simulator.py`: how many houses of the simulation suffer an attack.
- variable `START` of the file `securegrid-simulator.py`: when the simulation starts
- variable `END` of the file `securegrid-simulator.py`: when the simulation ends
- variable `attackPercentageValue` of the file `attack.py`: percentage of the original value at which the power consumption values of the houses will be modified
- variable `attackTime` of the file `attack.py`: moment in which the attack starts. This variable represents the percentage of the course of the simulation in which the attack will begin.
##Execution
## Execution
The following command starts the simulation.
$ python securegrid-simulator.py
......
......@@ -28,13 +28,15 @@ sim_config = {
}
}
START = '2014-01-01 00:00:00'
END = 31 * 24 * 3600 # 1 day
## CONFIGURATION
PV_DATA = 'data/pv_10kw.csv'
PROFILE_FILE = 'data/profiles.data.gz'
GRID_NAME = 'demo_lv_grid'
GRID_FILE = 'data/%s.json' % GRID_NAME
GRID_FILE = 'data/demo_lv_grid.json'
OUTPUT_FILE = 'demo.hdf5'
START = '2014-01-01 00:00:00'
END = 31 * 24 * 3600 # 1 day
nAttacks = 10
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment