|
a |
|
b/src/CS/Host2AP.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.CS;
|
|
|
17 |
|
|
|
18 |
import rina.Common.Test;
|
|
|
19 |
import rina.DAF.ApplicationProcess;
|
|
|
20 |
import rina.DAF.DA.DIFAllocator;
|
|
|
21 |
import rina.DIF.IPCProcess;
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
module Host2AP
|
|
|
25 |
{
|
|
|
26 |
parameters:
|
|
|
27 |
@display("i=device/pc;bgb=340,271");
|
|
|
28 |
@node;
|
|
|
29 |
|
|
|
30 |
gates:
|
|
|
31 |
inout medium @loose;
|
|
|
32 |
|
|
|
33 |
submodules:
|
|
|
34 |
applicationProcess1: ApplicationProcess {
|
|
|
35 |
@display("p=72,57");
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
applicationProcess2: ApplicationProcess {
|
|
|
39 |
@display("p=268,57");
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
difAllocator: DIFAllocator {
|
|
|
43 |
@display("p=170,57");
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
ipcProcess0: IPCProcess {
|
|
|
47 |
@display("p=170,212");
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
ipcProcess1: IPCProcess {
|
|
|
51 |
@display("p=170,130");
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
connections allowunconnected:
|
|
|
55 |
ipcProcess0.southIo++ <--> medium;
|
|
|
56 |
ipcProcess1.southIo++ <--> ipcProcess0.northIo++;
|
|
|
57 |
}
|