summaryrefslogtreecommitdiff
path: root/example/platform.yaml
blob: ea3f760d93559233dea1fd813ae44be28b9b6d5e (plain)
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
60
61
##### General Section #####
general:
    # List of timestamps at which the simulator should break
    # and call the callback function (cf. the breakpoints_callback entry)
    breakpoints: []
    # Same as breakpoints but simulator will break every x second(s) 
    breakpoints_every: 1000
    # Define the callback to call when the simulator reach a breakpoint
    breakpoints_callback:
        file: "platform_callback.py"
        callback: "callback"
    # Turn on/off the debugging mode of esds
    debug: off
    # Debug output file (default is ./esds.debug)
    debug_file: "./esds.debug"
    # Should esds take into account interferences
    interferences: on

##### Nodes Section #####
nodes:
    # Number of nodes to simulate
    count: 5
    # List of files used as implementation for each node
    # Example: 
    #  - 0,1,2 sender.py
    #  - 3-4 receiver.py
    # Note that @ will be replaced by the last node id example for 5 nodes:
    # 0-@ receiver.py     is equivalent to     0-4 receiver.py
    implementations:
        - all sender.py
    # Allow you to assign a group to each node (visible in ESDS log reports)
    # If not specified, group is "def" for default
    groups:
        - 0-2 A
    # Node implementation arguments
    # arguments keys are ranges of nodes, and values are passed to the specified nodes
    arguments:
        all: 2

##### Interfaces Section #####
interfaces:
    # Each entry for each node interfaces
    wlan0:
        # Interface type (wired/wireless)
        type: "wireless"
        # List of links between nodes on this interface
        # Syntax infos:
        # 1MBps = 1 megaBYTE per seconds
        # 1Mbps = 1 megabit per seconds
        # Each entry has the following format: <ListOfNodes> <Bandwidth> <Latency> <ListOfNodes>
        links:
            - 0 1Bps 10s 0
        # List of transmission performance for each nodes (only for wireless interfaces)
        # Each entry has the following format: <ListOfNodes> <Bandwidth> <Latency>
        txperfs:
            - 0-4 1Bps 10s
    # Example of a wired interface
    eth0:
        type: "wired"
        links: 
            - all 5Mbps 10s all