Simple Module RCTrafficSourceApp

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

C++ definition

Traffic source application used for rate-constrained traffic generators.

See also: ~CTTrafficSourceAppBase, ~ITimed, ~TTTrafficSourceApp

Author: Till Steinbach

RCTrafficSourceApp

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
CTTrafficSourceAppBase simple module

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

Known subclasses:

Name Type Description
RCBurstTrafficSourceApp simple module

Traffic source application used for rate-constrained traffic generators with burst behavior.

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

interval double

Sending interval for the rate constrained messages (any build in disstribution can be used)

Properties:

Name Value Description
class RCTrafficSourceApp
display i=,orange

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:

//
// Traffic source application used for rate-constrained traffic generators.
//
// @see ~CTTrafficSourceAppBase, ~ITimed, ~TTTrafficSourceApp
//
// @author Till Steinbach
//
simple RCTrafficSourceApp extends CTTrafficSourceAppBase like ITimed
{
    parameters:
        @class(RCTrafficSourceApp);
        @display("i=,orange");

        //Sending interval for the rate constrained messages (any build in disstribution can be used)
        volatile double interval @unit(s);
}