NED File base/modules/BaseLayer.ned

Name Description
BaseLayer (simple module)

Base module for all layer modules. Defines the in and out gates

Source code:

//
// 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/.
// 

package org.mixim.base.modules;

//
// Base module for all layer modules. Defines the in and out gates
//
simple BaseLayer
{
    parameters:
        bool notAffectedByHostState = default(false);
        
    gates:
        input upperGateIn; // from upper layer
        output upperGateOut; // to uppe layer
        input upperControlIn; // control from upper layer
        output upperControlOut; // control to upper layer
        input lowerGateIn; // from lower layer
        output lowerGateOut; // to lower layer
        input lowerControlIn; // control from lower layer
        output lowerControlOut; // control to lower layer
}