|
a |
|
b/src/CS/HostNAP.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 |
// Author: Kewin Rausch <kewin.rausch@create-net.org>
|
|
|
17 |
|
|
|
18 |
package rina.CS;
|
|
|
19 |
|
|
|
20 |
import rina.Common.Test;
|
|
|
21 |
import rina.DAF.ApplicationProcess;
|
|
|
22 |
import rina.DAF.DA.DIFAllocator;
|
|
|
23 |
import rina.DAF.IRM.IPCResourceManager;
|
|
|
24 |
import rina.DIF.IPCProcess;
|
|
|
25 |
|
|
|
26 |
module HostNAP
|
|
|
27 |
{
|
|
|
28 |
parameters:
|
|
|
29 |
@display("i=device/pc;bgb=257,442");
|
|
|
30 |
@node;
|
|
|
31 |
|
|
|
32 |
int nofAP = default(1);
|
|
|
33 |
|
|
|
34 |
gates:
|
|
|
35 |
inout medium @loose;
|
|
|
36 |
|
|
|
37 |
submodules:
|
|
|
38 |
AP[nofAP]: ApplicationProcess {
|
|
|
39 |
@display("p=64,68");
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
difAllocator: DIFAllocator {
|
|
|
43 |
@display("p=195,68");
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
ipcProcess0: IPCProcess {
|
|
|
47 |
@display("p=117,358");
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
ipcProcess1: IPCProcess {
|
|
|
51 |
@display("p=117,276");
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
ipcResourceManager: IPCResourceManager {
|
|
|
55 |
@display("p=117,180");
|
|
|
56 |
}
|
|
|
57 |
connections allowunconnected:
|
|
|
58 |
ipcProcess0.southIo++ <--> medium;
|
|
|
59 |
ipcProcess0.northIo++ <--> ipcProcess1.southIo++;
|
|
|
60 |
}
|