Simple Module TestApplication

Package: org.mixim.modules.application
File: modules/application/TestApplication.ned

C++ definition

TestApplication

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved 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.

Host802154A (compound module)

This host NED module models a host using an IEEE 802.15.4A correlation receiver.

Parameters:

Name Type Default value Description
debug bool

debug switch

stats bool

stats switch

trace bool

trace switch

trafficParam double

mean time between packets (poisson arrival rate)

nodeAddr double

node address

dstAddr double

packet destination node address

flood bool

send packets continuously

payloadSize double

number of bytes per packet

nbPackets double

number of packets to generate

Gates:

Name Direction Size Description
lowerGateIn input

to receive data from communications stack

lowerGateOut output

to send data to communications stack

lowerControlIn input

to receive control messages from communications stack

lowerControlOut output

to send control messages from communications stack

Source code:

simple TestApplication

{
    parameters:
        bool debug; // debug switch
        bool stats;   // stats switch
        bool trace; // trace switch
        double trafficParam;   // mean time between packets (poisson arrival rate)
        double nodeAddr;        // node address
        double dstAddr;		// packet destination node address
        bool flood;                   // send packets continuously
        double payloadSize @unit(byte);     // number of bytes per packet
        double nbPackets;	// number of packets to generate


    gates:
        input lowerGateIn; // to receive data from communications stack
        output lowerGateOut; // to send data to communications stack
        input lowerControlIn; // to receive control messages from communications stack
        output lowerControlOut; // to send  control messages from communications stack

}