Simple Module TocApp

Package: core4inet.applications.examples.rt_tictoc
File: src/core4inet/applications/examples/rt_tictoc/TocApp.ned

C++ definition

Toc(1,2) Application used for the rt_tictoc example. Receives TT messages with Tic(1,2)-Request payload and answers with RC messages with Toc(1,2)-Response payload.

See also: rt_tictoc, TicApp

Author: Till Steinbach

TocApp

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

Abstract base application used for real-time Ethernet-Application application models.

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

counter int 0

Counter is increased on incoming Tic(1,2) messages

ct_id int

CT-ID used for the messages to send

Properties:

Name Value Description
class TocApp
display i=block/routing,gold

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

Source code:

//
// Toc Application used for the rt_tictoc example.
// Receives TT messages with Tic-Request payload and answers
// with RC messages with Toc-Response payload.
//
// @see rt_tictoc, TicApp
//
// @author Till Steinbach
//
simple TocApp extends CTApplicationBase
{
    parameters:
        @class(TocApp);
        @display("i=block/routing,gold");

        //Counter is increased on incoming Tic messages
        int counter = 0;
        //CT-ID used for the messages to send
        int ct_id;
}