Revision c16015e2 util/milanoMob.py
util/milanoMob.py  

23  23 
MAX_WT = 0. 
24  24  
25  25 
# Random Waypoint model 
26 
rwp = random_waypoint(nr_nodes=500, dimensions=(


26 
rwp = random_waypoint(nr_nodes=200, dimensions=(


27  27 
MAX_X, MAX_Y), velocity=(MIN_V, MAX_V), wt_max=MAX_WT) 
28  28  
29  29 
# Reference Point Group model 
30  30 
# In tutto 150 nodi = 10x(5+4+3) + 15x(2) 
31  31 
# 10 gruppi X 5 
32 
groups = [5 for _ in range(10)]


32 
groups = [5 for _ in range(3)]


33  33 
nr_nodes = sum(groups) 
34  34 
rpg5 = reference_point_group( 
35  35 
groups, dimensions=(MAX_X, MAX_Y), aggregation=0.5) 
36  36  
37  37 
# 10 gruppi X 4 
38 
groups = [4 for _ in range(10)]


38 
groups = [4 for _ in range(3)]


39  39 
nr_nodes = sum(groups) 
40  40 
rpg4 = reference_point_group( 
41  41 
groups, dimensions=(MAX_X, MAX_Y), aggregation=0.5) 
42  42  
43  43 
# 10 gruppi X 3 
44 
groups = [3 for _ in range(10)]


44 
groups = [3 for _ in range(3)]


45  45 
nr_nodes = sum(groups) 
46  46 
rpg3 = reference_point_group( 
47  47 
groups, dimensions=(MAX_X, MAX_Y), aggregation=0.5) 
48  48  
49  49 
# 15 gruppi X 2 
50 
groups = [2 for _ in range(15)]


50 
groups = [2 for _ in range(10)]


51  51 
nr_nodes = sum(groups) 
52  52 
rpg2 = reference_point_group( 
53  53 
groups, dimensions=(MAX_X, MAX_Y), aggregation=0.5) 
Also available in: Unified diff