NED File src/inet/networklayer/contract/INetworkLayer.ned
Name | Type | Description |
---|---|---|
INetworkLayerUpper | module interface |
This module interface provides an abstraction for different network layers. |
INetworkLayerLower | module interface | (no description) |
INetworkLayer | module interface | (no description) |
Source code
// // Copyright (C) 2012 Opensim Ltd // Author: Levente Meszaros // // 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 2 // 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/>. // package inet.networklayer.contract; // // This module interface provides an abstraction for different network layers. // moduleinterface INetworkLayerUpper { parameters: @display("i=block/fork"); gates: input transportIn @labels(ITransportPacket/down); output transportOut @labels(ITransportPacket/up); } moduleinterface INetworkLayerLower { parameters: @display("i=block/fork"); gates: input ifIn @labels(INetworkHeader/up); output ifOut @labels(INetworkHeader/down); } moduleinterface INetworkLayer extends INetworkLayerUpper, INetworkLayerLower { parameters: @display("i=block/fork"); }