Simple Module TTTrafficSourceApp

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

C++ definition

Traffic source application used for time-triggered traffic generators.

See also: ~CTTrafficSourceAppBase, ~IScheduled, ~RCTrafficSourceApp

Author: Till Steinbach

TTTrafficSourceApp

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

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

action_time double

Time in the cycle at which the message is being send to the connected buffers

modulo int 1

Modulo cycles: 1 means message is being send in each cycle, 2 means in every second cycle, and so on. 0 means never

period string "^.scheduler.period[0]"

Period of Scheduler this app is assigned to

Properties:

Name Value Description
class TTTrafficSourceApp
display i=,red

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 time-triggered traffic generators.
//
// @see ~CTTrafficSourceAppBase, ~IScheduled, ~RCTrafficSourceApp
//
// @author Till Steinbach
//
simple TTTrafficSourceApp extends CTTrafficSourceAppBase like IScheduled
{
    parameters:
        @class(TTTrafficSourceApp);
        @display("i=,red");

        //Time in the cycle at which the message is being send to the connected buffers
        double action_time @unit(s);
        //Modulo cycles: 1 means message is being send in each cycle, 2 means in every second cycle,
        //and so on. 0 means never
        int modulo = default(1);
        //Period of Scheduler this app is assigned to
        string period = default("^.scheduler.period[0]");
}