Simple Module SEtherApp

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

C++ definition

The Ethernet Subscriber Application

This subscriber application needed in every subscriber node in a publish subscribe network. It works just over the MAC layer, and this is why it is necessary to implement MAC encapsulation. This module extends the BasePSApp module and adds the necessary functionality. For instance, it is able only to subscribe to new or existing Information Items, kept in the Information item table.

See also: BasePSApp

Author: Nikolaos Vastardis

SEtherApp

Extends:

BasePSApp (simple module)

The Base of the Pub-Sub Ethernet Applications

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.

SubHost (compound module)

The Subscriber Host

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

subInterval double 10s

time of choosing a subscriber to satisfy

Properties:

Name Value Description
display i=block/app
class SEtherApp

Gates:

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

Source code:

//
// <b> The Ethernet Subscriber Application </b>
//
// This subscriber application needed in every subscriber node in a publish
// subscribe network. It works just over the MAC layer, and this is why it
// is necessary to implement MAC encapsulation. This module extends the 
// BasePSApp module and adds the necessary functionality. For instance, 
// it is able only to subscribe to new or existing Information Items, kept in 
// the Information item table.
//
// @see BasePSApp
//
// @author Nikolaos Vastardis
//
simple SEtherApp extends BasePSApp
{
    parameters:
        @class(SEtherApp);
        double subInterval @unit("s") = default(10s);  		// time of choosing a subscriber to satisfy
        @display("i=block/app");
}