Simple Module BasePSApp

Package: pubsub_sim.PSetherApp
File: src/PSetherApp/BasePSApp.ned

C++ definition

The Base of the Pub-Sub Ethernet Applications

The basic module of the publish subscribe network applications. It defines the core functionality of every application module, no matter whether publisher or subscriber. Although a simple C++ implementation of the function seems enough, because of the necessity for this element to access the OMNET++ module parameters, this ned definition was created.

See also: PEtherApp, SEtherApp

Author: Nikolaos Vastardis

BasePSApp

Known subclasses:

PEtherApp (simple module)

The Ethernet Publisher Application

SEtherApp (simple module)

The Ethernet Subscriber Application

Parameters:

Name Type Default value Description
actPeak double 30s

The time period the application mainly active

datarate int 10Mbps

The datarate of each stream from the publisher

Properties:

Name Value Description
display i=block/app

Gates:

Name Direction Size Description
ifIn [ ] input
ifOut [ ] output

Source code:

//
// <b> The Base of the Pub-Sub Ethernet Applications </b>
//
// The basic module of the publish subscribe network applications. It defines
// the core functionality of every application module, no matter whether
// publisher or subscriber. Although a simple C++ implementation of the function
// seems enough, because of the necessity for this element to access the OMNET++
// module parameters, this ned definition was created.
//
// @see PEtherApp, SEtherApp
//
// @author Nikolaos Vastardis
//
simple BasePSApp
{
    parameters:
        double actPeak @unit("s") = default(30s);				// The time period the application mainly active
        volatile int datarate @unit(Mbps) = default(10Mbps);	//The datarate of each stream from the publisher
        @display("i=block/app");
    gates:
        input ifIn[] @labels(Ieee802Ctrl/up);
        output ifOut[] @labels(Ieee802Ctrl/down);
}