Skip to content

Commit

Permalink
PacketQueue: neddoc refined
Browse files Browse the repository at this point in the history
  • Loading branch information
avarga committed Sep 1, 2023
1 parent 45b8cdb commit febacda
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/inet/queueing/queue/PacketQueue.ned
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import inet.queueing.base.PacketQueueBase;
import inet.queueing.contract.IPacketQueue;

//
// This module implements a widely configurable packet queue, which is suitable
// among others, to be used in MAC protocols, traffic conditioning, and quality
// of services. This module can be used on its own, but it's also often supplemented
// This module implements a configurable packet queue, which is suitable for use
// in MAC protocols, traffic conditioning, and quality of services, among others.
// This is a passive component: packets are pushed into it on its input, and pulled
// from it on its output. This module can be used on its own, but it's also often supplemented
// by additional queueing components such as servers, classifiers, schedulers,
// multiplexers, etc. This kind of composition allows to form a larger module
// which can act as a packet queue with more complex behavior.
Expand Down Expand Up @@ -43,7 +44,7 @@ import inet.queueing.contract.IPacketQueue;
// other queues as necessary.
//
// Some often used packet queue variants such as ~DropTailQueue are implemented
// as dervide modules.
// as derived modules.
//
// Some notable packet dropper functions are: ~PacketAtCollectionBeginDropper,
// ~PacketAtCollectionEndDropper, ~PacketWithHighestOwnerModuleIdDropper,
Expand All @@ -62,7 +63,7 @@ simple PacketQueue extends PacketQueueBase like IPacketQueue
string dropperClass = default(""); // determines which packets are dropped when the queue is overloaded, packets are not dropped by default; the parameter must be the name of a C++ class which implements the IPacketDropperFunction C++ interface and is registered via Register_Class
string comparatorClass = default(""); // determines the order of packets in the queue, insertion order by default; the parameter must be the name of a C++ class which implements the IPacketComparatorFunction C++ interface and is registered via Register_Class
string bufferModule = default(""); // relative module path to the IPacketBuffer module used by this queue, implicit buffer by default
displayStringTextFormat = default("contains %p pk (%l) pushed %u\npulled %o removed %r dropped %d");
displayStringTextFormat = default("contains %p pk (%l) pushed %u\npulled %o removed %r dropped %d"); // see ~PacketQueueBase for available format specifiers
@class(PacketQueue);
@signal[packetPushStarted](type=inet::Packet);
@signal[packetPushEnded](type=inet::Packet?);
Expand Down

0 comments on commit febacda

Please sign in to comment.