Compound Module KBRTestAppModules

File: Applications/KBRTestApp/KBRTestApp.ned

Compound module for a simple test application using the KBR interface

Author: Bernhard Heep

kbrTestApp: KBRTestApp

Usage diagram:

The following diagram shows usage relationships between modules, networks and channels. Unresolved module (and channel) types are missing from the diagram. Click here to see the full picture.

Contains the following modules:

If a module type shows up more than once, that means it has been defined in more than one NED file.

KBRTestApp

Simple module of the KBR test application

Parameters:

Name Type Description
debugOutput bool

enable debug output

activeNetwInitPhase bool

is app active in network init phase?

Gates:

Name Direction Description
from_udp input

gate from the UDP layer

from_lowerTier input

gate from the lower tier

from_upperTier input

gate from the upper tier

trace_in input

gate for trace file commands

to_udp output

gate to the UDP layer

to_lowerTier output

gate to the lower tier

to_upperTier output

gate to the upper tier

Unassigned submodule parameters:

Name Type Description
kbrTestApp.messageDelay numeric

interval for sending test messages

kbrTestApp.msgHandleBufSize numeric

how many MsgHandles to store in circular buffer

kbrTestApp.lookupNodeIds bool

lookup only existing nodeIDs

Source code:

module KBRTestAppModules
    parameters:
        debugOutput : bool,    // enable debug output
        activeNetwInitPhase : bool;    // is app active in network init phase?
    
    gates:
        in: from_udp;     // gate from the UDP layer
        in: from_lowerTier;    // gate from the lower tier
        in: from_upperTier;    // gate from the upper tier
        in: trace_in;    // gate for trace file commands
        out: to_udp;    // gate to the UDP layer
        out: to_lowerTier;    // gate to the lower tier
        out: to_upperTier;    // gate to the upper tier

    submodules:
        kbrTestApp: KBRTestApp;
            parameters:
                debugOutput = debugOutput,    // enable debug output
                activeNetwInitPhase = activeNetwInitPhase;    // is app active in network init phase?
            display: "i=block/app";

    connections nocheck:
        from_lowerTier --> kbrTestApp.from_lowerTier;
        to_lowerTier <-- kbrTestApp.to_lowerTier;
        trace_in --> kbrTestApp.trace_in;
endmodule