Revision b6158841 util/milanoMob.py

View differences:

util/milanoMob.py
4 4
    tvc, truncated_levy_walk, random_direction, random_waypoint, random_walk
5 5
import numpy as np
6 6
import numpy
7
import code
7 8

  
8 9

  
9 10
def milano_mob():
......
23 24
        MAX_WT = 0.
24 25

  
25 26
        # Random Waypoint model
26
        rwp = random_waypoint(nr_nodes=200, dimensions=(
27
        rwp = random_waypoint(nr_nodes=100, dimensions=(
27 28
            MAX_X, MAX_Y), velocity=(MIN_V, MAX_V), wt_max=MAX_WT)
28 29

  
29 30
        # Reference Point Group model
30 31
        # In tutto 150 nodi = 10x(5+4+3) + 15x(2)
31 32
        # 10 gruppi X 5
32
        groups = [5 for _ in range(3)]
33
        groups = [5 for _ in range(10)]
33 34
        nr_nodes = sum(groups)
34 35
        rpg5 = reference_point_group(
35 36
            groups, dimensions=(MAX_X, MAX_Y), aggregation=0.5)
36 37

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

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

  
49 50
        # 15 gruppi X 2
50
        groups = [2 for _ in range(10)]
51
        groups = [2 for _ in range(15)]
51 52
        nr_nodes = sum(groups)
52 53
        rpg2 = reference_point_group(
53 54
            groups, dimensions=(MAX_X, MAX_Y), aggregation=0.5)

Also available in: Unified diff