SourceApp

Package: inet.applications.common

SourceApp

compound module

Implements a generic source application.

source : like IActivePacketSource

ActivePacketSource: An active packet source which pushes packets into the connected module.

IActivePacketSource: Interface for active packet source modules.

Source:
source: <default("ActivePacketSource")> like IActivePacketSource {
    @display("p=150,150");
}

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Properties

Name Value Description
application
display i=block/app

Gates

Name Direction Size Description
socketIn input
socketOut output

Source code

//
// Implements a generic source application.
//
module SourceApp like IApp
{
    parameters:
        @application;
        @display("i=block/app");
    gates:
        input socketIn;
        output socketOut;
    submodules:
        source: <default("ActivePacketSource")> like IActivePacketSource {
            @display("p=150,150");
        }
    connections allowunconnected:
        source.out --> socketOut;
}

File: src/inet/applications/common/SourceApp.ned