ActivePacketSource

Package: inet.queueing.source

ActivePacketSource

simple module

C++ definition

This module is an active packet source which pushes packets into the connected packet consumer.

ActivePacketSource

Inheritance diagram

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

Used in compound modules

Name Type Description
BurstyPacketProducer compound module

This module mixes two different packet sources to generate bursty traffic.

ClientHost1 compound module (no description)
ClientHost2 compound module (no description)
ClientHost3 compound module (no description)
ClientHost4 compound module (no description)
ClientHost5 compound module (no description)
ClientHost6 compound module (no description)
ClientHost7 compound module (no description)
ExampleCompoundPriorityQueue compound module (no description)
ExampleHost compound module (no description)
SenderHost compound module (no description)

Used in

Name Type Description
BufferTutorialStep network (no description)
ClonerTutorialStep network (no description)
ComparatorTutorialStep network (no description)
CompoundPacketQueueTutorialStep network (no description)
ContentBasedClassifierTutorialStep network (no description)
ContentBasedTaggerTutorialStep network (no description)
DelayerTutorialStep network (no description)
DropTailQueueTutorialStep network (no description)
DuplicatorTutorialStep network (no description)
Filter1TutorialStep network (no description)
Gate1TutorialStep network (no description)
GenericClassifierTutorialStep network (no description)
LabelerTutorialStep network (no description)
LeakyBucketTutorialStep network (no description)
MarkovClassifierTutorialStep network (no description)
MeterTutorialStep network (no description)
MultiplexerTutorialStep network (no description)
OrdinalBasedDropperTutorialStep network (no description)
OrdinalBasedDuplicatorTutorialStep network (no description)
PacketBasedTokenGeneratorTutorialStep network (no description)
PacketQueueTutorialStep network (no description)
PeekingUnderTheHoodShowcase network (no description)
PeekingUnderTheHoodShowcase network (no description)
PriorityBufferTutorialStep network (no description)
PriorityClassifierTutorialStep network (no description)
PriorityQueueTutorialStep network (no description)
PrioritySchedulerTutorialStep network (no description)
ProducerConsumerTutorialStep network (no description)
RedDropperTutorialStep network (no description)
RequestResponseTutorialStep network (no description)
TaggerTutorialStep network (no description)
TokenBucketTutorialStep network (no description)
WrrClassifierTutorialStep network (no description)

Extends

Name Type Description
ActivePacketSourceBase simple module

This is a base module for various active packet source modules.

Parameters

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

determines the text that is written on top of the submodule

packetNameFormat string "%a-%c"

see directives in module documentation

packetRepresentation string "byteCount"

determines the chunk of the packet data

packetLength int
packetData int -1
attachCreationTimeTag bool true
attachIdentityTag bool true
attachDirectionTag bool true
clockModule string ""

relative path of a module that implements IClock(1,2); optional

initialProductionOffset double 0s
productionInterval double

elapsed time between subsequent packets pushed to the connected packet consumer

scheduleForAbsoluteTime bool true

when a clock is used relative means that setting the clock will not affect the simulation time of the event

Properties

Name Value Description
display i=block/source
class ActivePacketSource

Gates

Name Direction Size Description
out output

Signals

Name Type Unit
packetPushed inet::Packet

Statistics

Name Title Source Record Unit Interpolation Mode
packetLengths packet lengths packetLength(packetPushed) sum, histogram, vector b none
dataRate data rate throughput(packetPushed) vector bps linear
packets packets packetPushed count pk

Source code

//
// This module is an active packet source which pushes packets into the connected
// packet consumer.
//
simple ActivePacketSource extends ActivePacketSourceBase like IActivePacketSource
{
    parameters:
        string clockModule = default(""); // relative path of a module that implements IClock; optional
        double initialProductionOffset @mutable @unit(s) = default(0s);
        volatile double productionInterval @unit(s); // elapsed time between subsequent packets pushed to the connected packet consumer
        bool scheduleForAbsoluteTime = default(true); // when a clock is used relative means that setting the clock will not affect the simulation time of the event
        @class(ActivePacketSource);
    gates:
        output out @labels(push);
}
File: src/inet/queueing/source/ActivePacketSource.ned