Switch to unified view

a b/src/CS/InteriorRouter3Int.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.DAF.DA.DIFAllocator;
19
import rina.DIF.IPCProcess;
20
21
22
module InteriorRouter3Int
23
{
24
    @display("i=abstract/switch;bgb=282,267");
25
    @node;
26
    gates:
27
        inout medium[3];
28
    submodules:
29
        ipcProcess0: IPCProcess {
30
            @display("p=65,145");
31
        }
32
        ipcProcess1: IPCProcess {
33
            @display("p=205,145");
34
        }
35
        relayIpc: IPCProcess {
36
            @display("p=135,53;i=,#FFB000");
37
        }
38
        difAllocator: DIFAllocator {
39
            @display("p=227,53");
40
        }
41
        ipcProcess2: IPCProcess {
42
            @display("p=135,201");
43
        }
44
    connections allowunconnected:
45
        ipcProcess0.southIo++ <--> medium[0];
46
        ipcProcess1.southIo++ <--> medium[1];
47
        ipcProcess2.southIo++ <--> medium[2];
48
        relayIpc.southIo++ <--> ipcProcess0.northIo++;
49
        relayIpc.southIo++ <--> ipcProcess1.northIo++;
50
        relayIpc.southIo++ <--> ipcProcess2.northIo++;
51
}