Simple Module CTTrafficSourceAppBase

Package: core4inet.applications.trafficsource.AS6802
File: src/core4inet/applications/trafficsource/AS6802/CTTrafficSourceAppBase.ned

C++ definition

Abstract base traffic source application used for various traffic generators. Uses CTFrame with encapsulated cPacket as payload

WARNING: Since this is an abstract module please do not instantiate it!

See also: ~TrafficSourceAppBase, ~TTTrafficSourceApp, ~RCTrafficSourceApp

Author: Till Steinbach

CTTrafficSourceAppBase

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.

Extends:

Name Type Description
TrafficSourceAppBase simple module

Abstract base traffic source application used for various traffic generators. Uses CTFrame with encapsulated cPacket as payload Since this is an abstract module please do not instantiate it

Known subclasses:

Name Type Description
RCTrafficSourceApp simple module

Traffic source application used for rate-constrained traffic generators.

TTTrafficSourceApp simple module

Traffic source application used for time-triggered traffic generators.

Parameters:

Name Type Default value Description
displayName string ""

Name shown above the module

buffers string ""

Comma seperated list of buffer modules the application is allowed to use

buffers_manual bool false

If true, buffer management is not used. Applications use their own methods to locate buffers

enabled bool true

Trafficsource enabled or disabled

startTime double 0s

Start time

payload int 46Byte

Size of the payload of the message (size of encapsulated cPacket) that is being generated

ct_id int -1

Critical traffic identifier of the message that is being generated (-1) means don't set ID

oscillator string "^.scheduler.oscillator"

Oscillator of Scheduler this app is assigned to

timer string "^.scheduler.timer"

Timer of Scheduler this app is assigned to

Properties:

Name Value Description
class AbstractSimpleModule
display i=block/source

Gates:

Name Direction Size Description
schedulerIn input

Input gate for the incoming Scheduler messages

Signals:

Name Type Unit
payloadSignal

Statistics:

Name Title Source Record Unit Interpolation Mode
payloadOverTime payload over time payloadSignal stats?, histogram?, vector? B linear

Source code:

//
// Abstract base traffic source application used for various traffic generators.
// Uses CTFrame with encapsulated cPacket as payload
//
// @warning Since this is an abstract module please do not instantiate it!
//
// @see ~TrafficSourceAppBase, ~TTTrafficSourceApp, ~RCTrafficSourceApp
//
// @author Till Steinbach
//
simple CTTrafficSourceAppBase extends TrafficSourceAppBase
{
    parameters:
        @class(AbstractSimpleModule);
        @display("i=block/source");

        //Critical traffic identifier of the message that is being generated (-1) means don't set ID
        int ct_id = default(-1);
        //Oscillator of Scheduler this app is assigned to
        string oscillator = default("^.scheduler.oscillator");
        //Timer of Scheduler this app is assigned to
        string timer = default("^.scheduler.timer");
}