Simple Module KBRTestApp

File: Applications/KBRTestApp/KBRTestApp.ned

C++ definition: click here

Simple module of the KBR test application

Author: Markus Mauch, Bernhard Heep

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.

Used in compound modules:

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

KBRTestAppModules

Compound module for a simple test application using the KBR interface

Parameters:

Name Type Description
debugOutput bool

enable debug output

messageDelay numeric

interval for sending test messages

msgHandleBufSize numeric

how many MsgHandles to store in circular buffer

lookupNodeIds bool

lookup only existing nodeIDs

activeNetwInitPhase bool

is app active in network init phase?

Gates:

Name Direction Description
from_lowerTier input

gate from the lower tier

direct_in input

gate for sendDirect

trace_in input

gate for trace file commands

to_lowerTier output

gate to the lower tier

Source code:

simple KBRTestApp
    parameters:
        debugOutput : bool,    // enable debug output
        messageDelay : numeric,    // interval for sending test messages
        msgHandleBufSize : numeric,    // how many MsgHandles to store in circular buffer
        lookupNodeIds : bool,    // lookup only existing nodeIDs
        activeNetwInitPhase : bool;    // is app active in network init phase?
    
    gates:
        in: from_lowerTier;    // gate from the lower tier
        in: direct_in;    // gate for sendDirect
        in: trace_in;    // gate for trace file commands
        out: to_lowerTier;    // gate to the lower tier
endsimple