Switch to unified view

a b/examples/SimpleRelay/SimpleRelay.ned
1
//
2
// This program is free software: you can redistribute it and/or modify
3
// it under the terms of the GNU Lesser General Public License as published by
4
// the Free Software Foundation, either version 3 of the License, or
5
// (at your option) any later version.
6
// 
7
// This program is distributed in the hope that it will be useful,
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
// GNU Lesser General Public License for more details.
11
// 
12
// You should have received a copy of the GNU Lesser General Public License
13
// along with this program.  If not, see http://www.gnu.org/licenses/.
14
// 
15
16
package rina.examples.SimpleRelay;
17
import rina.CS.Host1AP;
18
import rina.CS.InteriorRouter2Int;
19
20
21
network SimpleRelay
22
{
23
    @display("bgb=368,202");
24
    submodules:
25
        host1: Host1AP {
26
            @display("p=70,101");
27
        }
28
        interiorRouter: InteriorRouter2Int {
29
            @display("p=180,101");
30
        }
31
        host2: Host1AP {
32
            @display("p=290,101");
33
        }
34
    connections allowunconnected:
35
        host1.medium <--> interiorRouter.medium++;
36
        host2.medium <--> interiorRouter.medium++;
37
}