PacketGate

Package: inet.queueing.common

PacketGate

simple module

This module allows or forbids packets to pass through depending on whether the gate is open or closed.

PacketGate

Inheritance diagram

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

Extends

Name Type Description
PacketProcessorBase simple module

This is a base module for various packet processing modules which maintains a few statistics.

Parameters

Name Type Default value Description
displayStringTextFormat string "passed %p pk (%l)"

determines the text that is written on top of the submodule

initiallyOpen bool false
openTime double nan s

if there's only one

closeTime double nan s

if there's only one

changeTimes string ""

space separated list of times where state change happens

Properties

Name Value Description
class PacketGate
display i=block/cogwheel

Gates

Name Direction Size Description
in input
out output

Source code

//
// This module allows or forbids packets to pass through depending on whether
// the gate is open or closed.
//
simple PacketGate extends PacketProcessorBase like IPacketSource, IPacketSink
{
    parameters:
        bool initiallyOpen = default(false);
        double openTime @unit(s) = default(nan s); // if there's only one
        double closeTime @unit(s) = default(nan s); // if there's only one
        string changeTimes = default(""); // space separated list of times where state change happens
        displayStringTextFormat = default("passed %p pk (%l)");
        @class(PacketGate);
        @display("i=block/cogwheel");
    gates:
        input in;
        output out;
}
File: src/inet/queueing/common/PacketGate.ned