Simple Module CTTrafficSinkApp

Package: core4inet.applications.trafficsink.AS6802
File: src/core4inet/applications/trafficsink/AS6802/CTrafficSinkApp.ned

C++ definition

Traffic sink application used for statistics collection of critical traffic.

See also: ~TrafficSinkApp

Author: Till Steinbach

CTTrafficSinkApp

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

Traffic sink application used for statistics collection.

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

Properties:

Name Value Description
class CTTrafficSinkApp
display i=block/sink

Gates:

Name Direction Size Description
schedulerIn input

Input gate for the incoming Scheduler messages

TTin input

Input gate for the incoming time-triggered messages

RCin input

Input gate for the incoming rate-constrained messages

Signals:

Name Type Unit
rxPk inet::EtherFrame

Statistics:

Name Title Source Record Unit Interpolation Mode
rxLatency End-to-end latency messageAge(rxPk) stats, histogram?, vector s none
rxBytes Received Bytes rxPk sum(packetBytes), vector(packetBytes), histogram(packetBytes)?, floatingIntervalSumVector(packetBytes)? B none
rxPk Received Packets rxPk count packets
rxLatencyInner End-to-end latency inner messageAge(innerMessage(rxPk)) stats, histogram?, vector s none

Source code:

//
// Traffic sink application used for statistics collection of critical traffic.
//
// @see ~TrafficSinkApp
//
// @author Till Steinbach
//
simple CTTrafficSinkApp extends TrafficSinkApp
{
    parameters:
        @class(CTTrafficSinkApp);

    gates:
        //Input gate for the incoming time-triggered messages
        input TTin @directIn @labels(TTFrame);
        //Input gate for the incoming rate-constrained messages
        input RCin @directIn @labels(RCFrame);
}