-
Notifications
You must be signed in to change notification settings - Fork 4
/
simSettings.m
59 lines (52 loc) · 2.99 KB
/
simSettings.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
% simSettings The core simulation settings.
% This file contains all the necessary information to initialise the
% simulation framework. The simulation parameters referring to the
% communication planes can be found under ratToolbox/available.
%
% Copyright (c) 2019-2020, Ioannis Mavromatis
% email: ioan.mavromatis@bristol.ac.uk
% email: ioannis.mavromatis@toshiba-bril.com
%% Verbosity level of the simulation -- affects the number of messages printed on the command prompt
global VERBOSELEVEL
VERBOSELEVEL = 1; % Use 0 to print nothing, 1 to print some
% messages in the command line, 2 to print maps
%% Simulator Settings
global SIMULATOR
SIMULATOR.scenario = 'sumo'; % three scenarios provided, i.e., 'v2v', 'sumo', 'osm'
SIMULATOR.bsPlacement = 'greedy'; % three options provied, i.e., 'ga', 'random', 'greedy'
SIMULATOR.parallelRun = 1;
SIMULATOR.parallelWorkers = 8;
SIMULATOR.sumoPath = '/usr/local/bin';
SIMULATOR.map = 1; % give 0 to parse an OSM map, 1 to parse map from SUMO
SIMULATOR.load = 2; % Choose if the preprocessed files will be loaded - 0 process from scratch, 1 ask user, 2 load all (if existing)
SIMULATOR.pathPreprocessed = './mobilityFiles/preprocessedFiles';
SIMULATOR.gaSeed = 5; % The seed to be used for the Genetic Algorithm (for the BS placement)
SIMULATOR.randomToChoose = 50; % The number of random basestations to be chosen (when using the random BS placement function)
%% SUMO Settings
sumo.routeFile = './mobilityFiles/sumoFiles/manhattanLarge/manhattanLarge.sumocfg';
sumo.maxVehicleNumber = 200; % maximum number of vehicles per timestep - set to zero if all vehicles are to be considered
sumo.startTime = 0;
sumo.endTime = 200;
sumo.maxPedestrianNumber = 200; % maximum number of pedestrians per timestep - set to zero if all pedestrians are to be considered
sumo.gui = 0; % set to 1 if the user wants to use the SUMO GUI
%% Lookup Tables Vehicles Types
sumo.vehicleTypes= {'Ambulance';'Passenger'};
sumo.vehicleTypeAbbreviation= {'amb' ; 'pas'};
%% Map Settings
map.file = './mobilityFiles/sumoFiles/manhattanLarge/manhattanLarge.osm.xml'; % manhattanLarge - londonSmall - smartJunction
map.simplificationTolerance = 10;
map.edgeTolerance = 100;
map.tileSize = 16; % for square tiles: length of side - for hexagons: length of short diagonal
map.tileShape = 2; % give 1 for hexagon and 2 for square
map.area = 600; % give the size of the map tiles to be processed or give 0
% to be ignored --- for square areas: length of side - for
% hexagons: length of short diagonal
map.areaShape = 2; % give 1 for hexagon and 2 for square
map.maxUsersPerBuilding = 100; % the maximum number of users at the user density peak
map.densitySimplification = 50;
%% Structures used for the basestations and the linkbudget analysis
BS = struct;
BS.toleranceParam = 0.10; % value between [0,1]
linkBudget = struct;
%% Constants used during the simulation time
SIMULATOR.constant.c = 299792458; % speed of light - in m/s