Simple Module SRPTable

Package: core4inet.services.avb.SRP
File: src/core4inet/services/avb/SRP/SRPTable.ned

C++ definition

This module handles the mapping between ports and streams.

TODO: If needed, srp tables can be pre-loaded from text files at the beginning of the simulation; this controlled by the srpTableFile module parameter.

Author: Till Steinbach

SRPTable

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.

Used in compound modules:

Name Type Description
RTIPHost compound module

Contains the common lower layers (linklayer and networklayer) of Router, StandardHost, WirelessHost etc.

TTEAVBEtherHost compound module

Module for a TTEAVBEthernet Host. Contains handler for TT, AVB, RC and BE Messages.

TTEAVBEtherSwitch compound module

Module for a TTEAVBEthernet Switch. Contains handler for TT, AVB, RC and BE Messages.

Parameters:

Name Type Default value Description
agingTime double 7s

Entries not updated are deleted after agingTime (0 means disabled)

Properties:

Name Value Description
display i=block/table2,blue

Signals:

Name Type Unit
NF_AVB_LISTENER_UPDATED SRPTable::ListenerEntry
NF_AVB_TALKER_REGISTERED SRPTable::TalkerEntry
NF_AVB_TALKER_UPDATED SRPTable::TalkerEntry
NF_AVB_LISTENER_REGISTERED SRPTable::ListenerEntry
NF_AVB_LISTENER_UNREGISTERED SRPTable::ListenerEntry
NF_AVB_LISTENER_REGISTRATION_TIMEOUT SRPTable::ListenerEntry

Source code:

//
// This module handles the mapping between ports and streams.
//
// @todo If needed, srp tables can be pre-loaded from text files at the beginning
// of the simulation; this controlled by the srpTableFile module parameter.
//
// @author Till Steinbach
//
simple SRPTable
{
    parameters:
        @display("i=block/table2,blue");

        //Signal emitted when talker is registered, contains TalkerEntry
        @signal[NF_AVB_TALKER_REGISTERED](type=SRPTable::TalkerEntry);
        //Signal emitted when talker is updated, contains TalkerEntry
        @signal[NF_AVB_TALKER_UPDATED](type=SRPTable::TalkerEntry);
        //Signal emitted when listener is registered, contains ListenerEntry
        @signal[NF_AVB_LISTENER_REGISTERED](type=SRPTable::ListenerEntry);
        //Signal emitted when listener is updated, contains ListenerEntry
        @signal[NF_AVB_LISTENER_UPDATED](type=SRPTable::ListenerEntry);
        //Signal emitted when listener is unregistered, contains ListenerEntry
        @signal[NF_AVB_LISTENER_UNREGISTERED](type=SRPTable::ListenerEntry);
        //Signal emitted when listener registration failed, contains ListenerEntry
        @signal[NF_AVB_LISTENER_REGISTRATION_TIMEOUT](type=SRPTable::ListenerEntry);

        //Entries not updated are deleted after agingTime (0 means disabled)
        double agingTime @unit("s") = default(7s);

        //string srpTableFile = default("");
}