TokenGeneratorBase

Package: inet.queueing.base

TokenGeneratorBase

simple module

This is a base module for various token generator modules.

TokenGeneratorBase

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Known subclasses

Name Type Description
QueueBasedTokenGenerator simple module

This module generates tokens for a TokenBasedServer based on the observed state changes of a packet queue. It's primary purpose is to allow applications to produce traffic which completely utilizes a network interface. This is achieved by generating tokens whenever the observed packet queue becomes empty.

SignalBasedTokenGenerator simple module

This module generates tokens for a TokenBasedServer based on received signals.

TimeBasedTokenGenerator simple module

This module generates tokens for a TokenBasedServer repeatedly.

Parameters

Name Type Default value Description
serverModule string

module path of the packet server where the tokens are generated via C++ method call

displayStringTextFormat string "generated %t tk\nto %s"

determines display string text above the submodule

Properties

Name Value Description
class TokenGeneratorBase
display i=block/control

Source code

//
// This is a base module for various token generator modules.
//
simple TokenGeneratorBase
{
    parameters:
        string serverModule; // module path of the packet server where the tokens are generated via C++ method call
        string displayStringTextFormat = default("generated %t tk\nto %s"); // determines display string text above the submodule
        @class(TokenGeneratorBase);
        @display("i=block/control");
}
File: src/inet/queueing/base/TokenGeneratorBase.ned