SignalBasedTokenGenerator.ned

NED File src/inet/queueing/tokengenerator/SignalBasedTokenGenerator.ned

Name Type Description
SignalBasedTokenGenerator simple module

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

Source code

//
// Copyright (C) 2020 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//


package inet.queueing.tokengenerator;

import inet.queueing.base.TokenGeneratorBase;

//
// This module generates tokens for a ~TokenBasedServer based on received signals.
//
simple SignalBasedTokenGenerator extends TokenGeneratorBase
{
    parameters:
        string subscriptionModule = default("^");
        string signals;
        volatile double numTokens = default(1); // number of tokens generated repeatedly
        @class(SignalBasedTokenGenerator);
        @display("i=block/control");
}