PacketDelayer

Package: inet.queueing.common

PacketDelayer

simple module

This module connects one packet producer to one packet consumer. It can be pushed with packets from the connected packet producer. When this happens, the packet is delayed and eventually pushed to the output. Note that the order of packets may change if the delay parameter is configured to be a distribution.

Inheritance diagram

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

Extends

Name Type Description
PacketDelayerBase simple module (no description)

Parameters

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

determines the text that is written on top of the submodule

clockModule string ""

relative path of a module that implements IClock; optional

schedulingPriority int 0
scheduleZeroDelay bool true
delay double

specifies delay per packet

bitrate double inf bps

determines additional delay per bit

Properties

Name Value Description
display i=block/delay
class PacketDelayer

Gates

Name Direction Size Description
in input
out output

Scheduled messages (observed)

msgkindctrltagsmsgnamecontext
Packet0DirectionTag, PacketProtocolTagproducer-N
Packet0DirectionTag, PacketProtocolTagsourceApplication-N

Direct method calls (observed)

call tofunctioninfo
PacketServerinet::queueing::PacketServer::handleCanPushPacketChangedhandleCanPushPacketChanged
PassivePacketSinkinet::queueing::PassivePacketSink::pushPacketpushPacket
ActivePacketSourceinet::queueing::ActivePacketSource::handleCanPushPacketChangedhandleCanPushPacketChanged

Called methods (observed)

functioninfocall from
inet::queueing::PacketDelayer::handleCanPushPacketChangedhandleCanPushPacketChangedPassivePacketSink
inet::queueing::PacketDelayer::pushPacketpushPacketPacketServer, ActivePacketSource

Pushed in messages (observed)

gatemsgkindctrlsrcModuletags
inPacket0PacketServerDirectionTag, PacketProtocolTag
inPacket0ActivePacketSourceDirectionTag, PacketProtocolTag

Push out messages (observed)

gatemsgkindctrldestModuletags
outPacket0PassivePacketSinkDirectionTag, PacketProtocolTag

Region Tagging operations (observed)

tagTypetagAction
DelayingTimeTagmapAllTagsForUpdate
PacketEventTagmapAllTagsForUpdate

Source code

//
// This module connects one packet producer to one packet consumer. It can be
// pushed with packets from the connected packet producer. When this happens,
// the packet is delayed and eventually pushed to the output. Note that the
// order of packets may change if the delay parameter is configured to be a
// distribution.
//
simple PacketDelayer extends PacketDelayerBase like IPacketDelayer
{
    parameters:
        volatile double delay @unit(s); // specifies delay per packet
        volatile double bitrate @unit(bps) = default(inf bps); // determines additional delay per bit
        @class(PacketDelayer);
}
File: src/inet/queueing/common/PacketDelayer.ned