|
a |
|
b/examples/AllNodes/AllNodes.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.AllNodes;
|
|
|
17 |
|
|
|
18 |
import rina.CS.BorderRouter;
|
|
|
19 |
import rina.CS.Host1AP;
|
|
|
20 |
import rina.CS.InteriorRouter2Int;
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
//
|
|
|
24 |
// TODO Auto-generated network
|
|
|
25 |
//
|
|
|
26 |
network AllNodes
|
|
|
27 |
{
|
|
|
28 |
@display("bgb=527,319");
|
|
|
29 |
submodules:
|
|
|
30 |
BorderRouterA: BorderRouter {
|
|
|
31 |
@display("p=139,143");
|
|
|
32 |
}
|
|
|
33 |
BorderRouterB: BorderRouter {
|
|
|
34 |
@display("p=371,143");
|
|
|
35 |
}
|
|
|
36 |
HostA1: Host1AP {
|
|
|
37 |
@display("p=41,50");
|
|
|
38 |
}
|
|
|
39 |
HostA2: Host1AP {
|
|
|
40 |
@display("p=41,243");
|
|
|
41 |
}
|
|
|
42 |
HostB1: Host1AP {
|
|
|
43 |
@display("p=478,60");
|
|
|
44 |
}
|
|
|
45 |
HostB2: Host1AP {
|
|
|
46 |
@display("p=478,243");
|
|
|
47 |
}
|
|
|
48 |
InteriorRouter: InteriorRouter2Int {
|
|
|
49 |
@display("p=251,143");
|
|
|
50 |
}
|
|
|
51 |
connections:
|
|
|
52 |
HostA1.medium <--> BorderRouterA.medium[0];
|
|
|
53 |
HostA2.medium <--> BorderRouterA.medium[1];
|
|
|
54 |
BorderRouterA.medium[2] <--> InteriorRouter.medium[0];
|
|
|
55 |
BorderRouterB.medium[2] <--> InteriorRouter.medium[1];
|
|
|
56 |
HostB1.medium <--> BorderRouterB.medium[0];
|
|
|
57 |
HostB2.medium <--> BorderRouterB.medium[1];
|
|
|
58 |
}
|