Child:
[75a1e4]
(diff)
Download this file
HostNAP.ned
57 lines (45 with data), 1.5 kB
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see http://www.gnu.org/licenses/.
//
// Author: Kewin Rausch <kewin.rausch@create-net.org>
package rina.CS;
import rina.Common.Test;
import rina.DAF.ApplicationProcess;
import rina.DAF.DA.DIFAllocator;
import rina.DIF.IPCProcess;
module HostNAP
{
parameters:
@display("i=device/pc;bgb=341,320");
@node;
int nofAP = default(1);
gates:
inout medium @loose;
submodules:
AP[nofAP]: ApplicationProcess {
@display("p=117,56");
}
difAllocator: DIFAllocator {
@display("p=266,168");
}
ipcProcess0: IPCProcess {
@display("p=117,250");
}
ipcProcess1: IPCProcess {
@display("p=117,168");
}
connections allowunconnected:
ipcProcess0.southIo++ <--> medium;
ipcProcess0.northIo++ <--> ipcProcess1.southIo++;
}