INET Framework for OMNeT++/OMNEST
inet::queueing::PacketGateBase Class Reference

#include <PacketGateBase.h>

Inheritance diagram for inet::queueing::PacketGateBase:
inet::queueing::PacketFlowBase inet::TransparentProtocolRegistrationListener inet::queueing::IPacketGate inet::queueing::PacketProcessorBase inet::queueing::IPacketFlow inet::queueing::IPacketCollection inet::IProtocolRegistrationListener inet::queueing::IPacketProcessor inet::StringFormat::IDirectiveResolver inet::queueing::IPacketSink inet::queueing::IPacketSource inet::queueing::IPassivePacketSink inet::queueing::IActivePacketSink inet::queueing::IPassivePacketSource inet::queueing::IActivePacketSource inet::ClockUserModuleMixin< PacketGateBase > inet::queueing::CreditBasedGate inet::queueing::InteractiveGate inet::EligibilityTimeGate inet::queueing::PacketGate inet::queueing::PeriodicGate

Public Member Functions

virtual bool isOpen () const override
 Returns true if the gate is open. More...
 
virtual bool isClosed () const
 
virtual void open () override
 Opens the gate and starts traffic go through. More...
 
virtual void close () override
 Closes the gate and stops traffic. More...
 
virtual IPassivePacketSinkgetConsumer (cGate *gate) override
 Returns the passive packet sink where packets are pushed or nullptr if the connected module doesn't implement the interface. More...
 
virtual IPassivePacketSourcegetProvider (cGate *gate) override
 Returns the passive packet source from where packets are pulled or nullptr if the connected module doesn't implement the interface. More...
 
virtual bool supportsPacketPushing (cGate *gate) const override
 Returns true if the processor supports pushing packets at the given gate. More...
 
virtual bool supportsPacketPulling (cGate *gate) const override
 Returns true if the processor supports pulling packets at the given gate. More...
 
virtual bool canPushSomePacket (cGate *gate) const override
 Returns false if the packet sink is full at the given gate and no more packets can be pushed into it without raising an error. More...
 
virtual bool canPushPacket (Packet *packet, cGate *gate) const override
 Returns true if the given packet can be pushed at the given gate into the packet sink without raising an error. More...
 
virtual bool canPullSomePacket (cGate *gate) const override
 Returns false if the packet source is empty at the given gate and no more packets can be pulled from it without raising an error. More...
 
virtual PacketcanPullPacket (cGate *gate) const override
 Returns the packet that can be pulled at the given gate. More...
 
virtual void handleCanPushPacketChanged (cGate *gate) override
 Notifies about a change in the possibility of pushing some packet into the passive packet sink at the given gate. More...
 
virtual void handleCanPullPacketChanged (cGate *gate) override
 Notifies about a change in the possibility of pulling some packet from the passive packet source at the given gate. More...
 
- Public Member Functions inherited from inet::queueing::PacketFlowBase
virtual bool supportsPacketStreaming (cGate *gate) const override
 Returns true if the processor supports streaming packets at the given gate. More...
 
virtual void pushPacket (Packet *packet, cGate *gate) override
 Pushes the packet into the packet sink at the given gate. More...
 
virtual void pushPacketStart (Packet *packet, cGate *gate, bps datarate) override
 Starts pushing the packet into the packet sink at the given gate. More...
 
virtual void pushPacketEnd (Packet *packet, cGate *gate) override
 Ends pushing the packet into the packet sink at the given gate. More...
 
virtual void pushPacketProgress (Packet *packet, cGate *gate, bps datarate, b position, b extraProcessableLength=b(0)) override
 Progresses pushing the packet into the packet sink at the given gate. More...
 
virtual void handlePushPacketProcessed (Packet *packet, cGate *gate, bool successful) override
 Notifies about the completion of the packet processing for a packet that was pushed earlier independently whether the packet is passed or streamed. More...
 
virtual PacketpullPacket (cGate *gate) override
 Pulls the packet from the packet source at the given gate. More...
 
virtual PacketpullPacketStart (cGate *gate, bps datarate) override
 Starts pulling the packet from the packet source at the given gate. More...
 
virtual PacketpullPacketEnd (cGate *gate) override
 Ends pulling the packet from the packet source at the given gate. More...
 
virtual PacketpullPacketProgress (cGate *gate, bps datarate, b position, b extraProcessableLength) override
 Progresses pulling the packet from the packet source at the given gate. More...
 
virtual void handlePullPacketProcessed (Packet *packet, cGate *gate, bool successful) override
 Notifies about the completion of the packet processing for a packet that was pulled earlier independently whether the packet is passed or streamed. More...
 
virtual int getMaxNumPackets () const override
 Returns maximum allowed number of packets in the collection. More...
 
virtual int getNumPackets () const override
 Returns the number of available packets in the collection in the range [0, inf). More...
 
virtual b getMaxTotalLength () const override
 Returns maximum allowed total length of all packets in the collection. More...
 
virtual b getTotalLength () const override
 Returns the total length of all packets in the collection in the range [0, inf). More...
 
virtual PacketgetPacket (int index) const override
 Returns the packet at the given index. More...
 
virtual bool isEmpty () const override
 Returns true if there are no packets available in the collection. More...
 
virtual void removePacket (Packet *packet) override
 Removes a packet from the collection. More...
 
virtual void removeAllPackets () override
 Removes all packets from the collection. More...
 
- Public Member Functions inherited from inet::queueing::PacketProcessorBase
virtual bool supportsPacketSending (cGate *gate) const override
 Returns true if the processor supports sending packets at the given gate. More...
 
virtual bool supportsPacketPassing (cGate *gate) const override
 Returns true if the processor supports passing packets as a whole at the given gate. More...
 
virtual const char * resolveDirective (char directive) const override
 
- Public Member Functions inherited from inet::queueing::IPacketProcessor
virtual ~IPacketProcessor ()
 
- Public Member Functions inherited from inet::queueing::IPassivePacketSink
virtual ~IPassivePacketSink ()
 
- Public Member Functions inherited from inet::queueing::IActivePacketSink
virtual ~IActivePacketSink ()
 
- Public Member Functions inherited from inet::queueing::IPassivePacketSource
virtual ~IPassivePacketSource ()
 
- Public Member Functions inherited from inet::queueing::IActivePacketSource
virtual ~IActivePacketSource ()
 
- Public Member Functions inherited from inet::TransparentProtocolRegistrationListener
virtual void mapRegistrationForwardingGates (cGate *gate, std::function< void(cGate *)> f)
 
virtual bool isForwardingProtocol (const Protocol &protocol, cGate *gate, ServicePrimitive servicePrimitive) const
 
virtual bool isForwardingProtocolGroup (const ProtocolGroup &protocolGroup, cGate *gate, ServicePrimitive servicePrimitive) const
 
virtual bool isForwardingAnyProtocol (cGate *gate, ServicePrimitive servicePrimitive) const
 
virtual bool isForwardingProtocol (cGate *gate, ServicePrimitive servicePrimitive) const
 
virtual bool isForwardingService (const Protocol &protocol, cGate *gate, ServicePrimitive servicePrimitive) const
 
virtual bool isForwardingServiceGroup (const ProtocolGroup &protocolGroup, cGate *gate, ServicePrimitive servicePrimitive) const
 
virtual bool isForwardingAnyService (cGate *gate, ServicePrimitive servicePrimitive) const
 
virtual bool isForwardingService (cGate *gate, ServicePrimitive servicePrimitive) const
 
virtual void handleRegisterService (const Protocol &protocol, cGate *gate, ServicePrimitive servicePrimitive) override
 
virtual void handleRegisterProtocol (const Protocol &protocol, cGate *gate, ServicePrimitive servicePrimitive) override
 
virtual void handleRegisterServiceGroup (const ProtocolGroup &protocolGroup, cGate *gate, ServicePrimitive servicePrimitive) override
 
virtual void handleRegisterProtocolGroup (const ProtocolGroup &protocolGroup, cGate *gate, ServicePrimitive servicePrimitive) override
 
virtual void handleRegisterAnyService (cGate *gate, ServicePrimitive servicePrimitive) override
 
virtual void handleRegisterAnyProtocol (cGate *gate, ServicePrimitive servicePrimitive) override
 

Static Public Attributes

static simsignal_t gateStateChangedSignal = registerSignal("gateStateChanged")
 

Protected Member Functions

virtual void initialize (int stage) override
 
virtual cGate * getRegistrationForwardingGate (cGate *gate) override
 
virtual void processPacket (Packet *packet) override
 
virtual bool canPacketFlowThrough (Packet *packet) const
 
virtual void updateDisplayString () const override
 
- Protected Member Functions inherited from inet::queueing::PacketFlowBase
virtual void handleMessage (cMessage *message) override
 
virtual bool isStreamingPacket () const
 
virtual void startPacketStreaming (Packet *packet)
 
virtual void endPacketStreaming (Packet *packet)
 
virtual void checkPacketStreaming (Packet *packet)
 
- Protected Member Functions inherited from inet::queueing::PacketProcessorBase
virtual int numInitStages () const override
 
virtual void refreshDisplay () const override
 
virtual void handlePacketProcessed (Packet *packet)
 
virtual void checkPacketOperationSupport (cGate *gate) const
 
virtual void checkPacketOperationSupport (cGate *startGate, cGate *endGate) const
 
virtual void animate (Packet *packet, cGate *gate, const SendOptions &sendOptions, Action action) const
 
virtual void animatePacket (Packet *packet, cGate *gate, Action action) const
 
virtual void animatePacketStart (Packet *packet, cGate *gate, bps datarate, long transmissionId, Action action) const
 
virtual void animatePacketStart (Packet *packet, cGate *gate, bps datarate, const SendOptions &sendOptions, Action action) const
 
virtual void animatePacketEnd (Packet *packet, cGate *gate, long transmissionId, Action action) const
 
virtual void animatePacketEnd (Packet *packet, cGate *gate, const SendOptions &sendOptions, Action action) const
 
virtual void animatePacketProgress (Packet *packet, cGate *gate, bps datarate, b position, b extraProcessableLength, long transmissionId, Action action) const
 
virtual void animatePacketProgress (Packet *packet, cGate *gate, bps datarate, b position, b extraProcessableLength, const SendOptions &sendOptions, Action action) const
 
virtual void pushOrSendPacket (Packet *packet, cGate *gate, IPassivePacketSink *consumer)
 
virtual void pushOrSendPacketStart (Packet *packet, cGate *gate, IPassivePacketSink *consumer, bps datarate, int transmissionId)
 
virtual void pushOrSendPacketEnd (Packet *packet, cGate *gate, IPassivePacketSink *consumer, int transmissionId)
 
virtual void pushOrSendPacketProgress (Packet *packet, cGate *gate, IPassivePacketSink *consumer, bps datarate, b position, b extraProcessableLength, int transmissionId)
 
virtual void animatePush (Packet *packet, cGate *gate, const SendOptions &sendOptions) const
 
virtual void animatePushPacket (Packet *packet, cGate *gate) const
 
virtual void animatePushPacketStart (Packet *packet, cGate *gate, bps datarate, long transmissionId) const
 
virtual void animatePushPacketStart (Packet *packet, cGate *gate, bps datarate, const SendOptions &sendOptions) const
 
virtual void animatePushPacketEnd (Packet *packet, cGate *gate, long transmissionId) const
 
virtual void animatePushPacketEnd (Packet *packet, cGate *gate, const SendOptions &sendOptions) const
 
virtual void animatePushPacketProgress (Packet *packet, cGate *gate, bps datarate, b position, b extraProcessableLength, long transmissionId) const
 
virtual void animatePushPacketProgress (Packet *packet, cGate *gate, bps datarate, b position, b extraProcessableLength, const SendOptions &sendOptions) const
 
virtual void animatePull (Packet *packet, cGate *gate, const SendOptions &sendOptions) const
 
virtual void animatePullPacket (Packet *packet, cGate *gate) const
 
virtual void animatePullPacketStart (Packet *packet, cGate *gate, bps datarate, long transmissionId) const
 
virtual void animatePullPacketStart (Packet *packet, cGate *gate, bps datarate, const SendOptions &sendOptions) const
 
virtual void animatePullPacketEnd (Packet *packet, cGate *gate, long transmissionId) const
 
virtual void animatePullPacketEnd (Packet *packet, cGate *gate, const SendOptions &sendOptions) const
 
virtual void animatePullPacketProgress (Packet *packet, cGate *gate, bps datarate, b position, b extraProcessableLength, long transmissionId) const
 
virtual void animatePullPacketProgress (Packet *packet, cGate *gate, bps datarate, b position, b extraProcessableLength, const SendOptions &sendOptions) const
 
virtual void dropPacket (Packet *packet, PacketDropReason reason, int limit=-1)
 

Protected Attributes

bps bitrate = bps(NaN)
 
b extraLength = b(-1)
 
simtime_t extraDuration
 
bool isOpen_ = false
 
- Protected Attributes inherited from inet::queueing::PacketFlowBase
cGate * inputGate = nullptr
 
ModuleRef< IActivePacketSourceproducer
 
ModuleRef< IPassivePacketSourceprovider
 
ModuleRef< IPacketCollectioncollection
 
cGate * outputGate = nullptr
 
ModuleRef< IPassivePacketSinkconsumer
 
ModuleRef< IActivePacketSinkcollector
 
int inProgressStreamId = -1
 
- Protected Attributes inherited from inet::queueing::PacketProcessorBase
const char * displayStringTextFormat = nullptr
 
int numProcessedPackets = -1
 
b processedTotalLength = b(-1)
 

Additional Inherited Members

- Protected Types inherited from inet::queueing::PacketProcessorBase
enum  Action { PUSH, PULL }
 

Member Function Documentation

◆ canPacketFlowThrough()

bool inet::queueing::PacketGateBase::canPacketFlowThrough ( Packet packet) const
protectedvirtual

◆ canPullPacket()

Packet * inet::queueing::PacketGateBase::canPullPacket ( cGate *  gate) const
overridevirtual

Returns the packet that can be pulled at the given gate.

The returned value is nullptr if there is no such packet.

The gate must be a valid gate of this module and it must support pushing packets.

Reimplemented from inet::queueing::PacketFlowBase.

87 {
88  auto packet = PacketFlowBase::canPullPacket(gate);
89  return isOpen_ && canPacketFlowThrough(packet) ? packet : nullptr;
90 }

◆ canPullSomePacket()

bool inet::queueing::PacketGateBase::canPullSomePacket ( cGate *  gate) const
overridevirtual

Returns false if the packet source is empty at the given gate and no more packets can be pulled from it without raising an error.

The gate must be a valid gate of this module and it must support pulling packets.

Reimplemented from inet::queueing::PacketFlowBase.

81 {
82  auto packet = PacketFlowBase::canPullPacket(gate);
84 }

◆ canPushPacket()

bool inet::queueing::PacketGateBase::canPushPacket ( Packet packet,
cGate *  gate 
) const
overridevirtual

Returns true if the given packet can be pushed at the given gate into the packet sink without raising an error.

The packet must not be nullptr. The gate must be a valid gate of this module and it must support pushing packets.

Reimplemented from inet::queueing::PacketFlowBase.

76 {
77  return isOpen_ && canPacketFlowThrough(packet) && PacketFlowBase::canPushPacket(packet, gate);
78 }

◆ canPushSomePacket()

bool inet::queueing::PacketGateBase::canPushSomePacket ( cGate *  gate) const
overridevirtual

Returns false if the packet sink is full at the given gate and no more packets can be pushed into it without raising an error.

The gate must be a valid gate of this module and it must support pushing packets.

Reimplemented from inet::queueing::PacketFlowBase.

71 {
73 }

◆ close()

void inet::queueing::PacketGateBase::close ( )
overridevirtual

Closes the gate and stops traffic.

Implements inet::queueing::IPacketGate.

53 {
54  ASSERT(isOpen_);
55  EV_DEBUG << "Closing gate" << EV_ENDL;
56  isOpen_ = false;
57  if (producer != nullptr)
58  producer->handleCanPushPacketChanged(inputGate->getPathStartGate());
59  if (collector != nullptr)
60  collector->handleCanPullPacketChanged(outputGate->getPathEndGate());
63 }

Referenced by inet::queueing::InteractiveGate::handleParameterChange(), inet::queueing::PacketGate::processChangeTimer(), inet::queueing::PeriodicGate::processChangeTimer(), inet::queueing::CreditBasedGate::processChangeTimer(), and inet::EligibilityTimeGate::updateOpen().

◆ getConsumer()

virtual IPassivePacketSink* inet::queueing::PacketGateBase::getConsumer ( cGate *  gate)
inlineoverridevirtual

Returns the passive packet sink where packets are pushed or nullptr if the connected module doesn't implement the interface.

The gate parameter must be a valid gate of this module.

Reimplemented from inet::queueing::PacketFlowBase.

50 { return this; }

◆ getProvider()

virtual IPassivePacketSource* inet::queueing::PacketGateBase::getProvider ( cGate *  gate)
inlineoverridevirtual

Returns the passive packet source from where packets are pulled or nullptr if the connected module doesn't implement the interface.

The gate parameter must be a valid gate of this module.

Reimplemented from inet::queueing::PacketFlowBase.

51 { return this; }

◆ getRegistrationForwardingGate()

cGate * inet::queueing::PacketGateBase::getRegistrationForwardingGate ( cGate *  gate)
overrideprotectedvirtual

Reimplemented from inet::TransparentProtocolRegistrationListener.

30 {
31  if (gate == outputGate)
32  return inputGate;
33  else if (gate == inputGate)
34  return outputGate;
35  else
36  throw cRuntimeError("Unknown gate");
37 }

◆ handleCanPullPacketChanged()

void inet::queueing::PacketGateBase::handleCanPullPacketChanged ( cGate *  gate)
overridevirtual

Notifies about a change in the possibility of pulling some packet from the passive packet source at the given gate.

This method is called, for example, when a new packet is inserted into a queue. It allows the sink to pull a new packet from the queue.

The gate parameter must be a valid gate of this module.

Reimplemented from inet::queueing::PacketFlowBase.

Reimplemented in inet::queueing::CreditBasedGate, and inet::EligibilityTimeGate.

100 {
101  Enter_Method("handleCanPullPacketChanged");
102  if (isOpen_)
104 }

Referenced by inet::EligibilityTimeGate::handleCanPullPacketChanged(), and inet::queueing::CreditBasedGate::handleCanPullPacketChanged().

◆ handleCanPushPacketChanged()

void inet::queueing::PacketGateBase::handleCanPushPacketChanged ( cGate *  gate)
overridevirtual

Notifies about a change in the possibility of pushing some packet into the passive packet sink at the given gate.

This method is called, for example, when a new packet can be inserted into a queue. It allows the source to push a new packet into the queue.

The gate parameter must be a valid gate of this module.

Reimplemented from inet::queueing::PacketFlowBase.

93 {
94  Enter_Method("handleCanPushPacketChanged");
95  if (isOpen_)
97 }

◆ initialize()

void inet::queueing::PacketGateBase::initialize ( int  stage)
overrideprotectedvirtual

Reimplemented from inet::queueing::PacketFlowBase.

Reimplemented in inet::queueing::CreditBasedGate, inet::EligibilityTimeGate, inet::queueing::PeriodicGate, inet::queueing::PacketGate, and inet::queueing::InteractiveGate.

16 {
18  if (stage == INITSTAGE_LOCAL) {
19  bitrate = bps(par("bitrate"));
20  extraLength = b(par("extraLength"));
21  extraDuration = par("extraDuration");
22  getDisplayString().setTagArg("i", 2, 20);
23  WATCH(isOpen_);
24  }
25  else if (stage == INITSTAGE_LAST)
27 }

Referenced by inet::queueing::InteractiveGate::initialize(), and inet::queueing::CreditBasedGate::initialize().

◆ isClosed()

virtual bool inet::queueing::PacketGateBase::isClosed ( ) const
inlinevirtual
46 { return !isOpen_; }

Referenced by inet::EligibilityTimeGate::updateOpen().

◆ isOpen()

virtual bool inet::queueing::PacketGateBase::isOpen ( ) const
inlineoverridevirtual

Returns true if the gate is open.

Implements inet::queueing::IPacketGate.

45 { return isOpen_; }

Referenced by inet::EligibilityTimeGate::updateOpen().

◆ open()

void inet::queueing::PacketGateBase::open ( )
overridevirtual

Opens the gate and starts traffic go through.

Implements inet::queueing::IPacketGate.

40 {
41  ASSERT(!isOpen_);
42  EV_DEBUG << "Opening gate" << EV_ENDL;
43  isOpen_ = true;
44  if (producer != nullptr)
45  producer->handleCanPushPacketChanged(inputGate->getPathStartGate());
46  if (collector != nullptr)
47  collector->handleCanPullPacketChanged(outputGate->getPathEndGate());
50 }

Referenced by inet::queueing::InteractiveGate::handleParameterChange(), inet::queueing::PacketGate::processChangeTimer(), inet::queueing::PeriodicGate::processChangeTimer(), inet::queueing::CreditBasedGate::processChangeTimer(), and inet::EligibilityTimeGate::updateOpen().

◆ processPacket()

void inet::queueing::PacketGateBase::processPacket ( Packet packet)
overrideprotectedvirtual

Implements inet::queueing::PacketFlowBase.

Reimplemented in inet::queueing::CreditBasedGate.

66 {
67  EV_INFO << "Passing through packet" << EV_FIELD(packet) << EV_ENDL;
68 }

Referenced by inet::queueing::CreditBasedGate::processPacket().

◆ supportsPacketPulling()

virtual bool inet::queueing::PacketGateBase::supportsPacketPulling ( cGate *  gate) const
inlineoverridevirtual

Returns true if the processor supports pulling packets at the given gate.

Pulling a packet is a synchronous operation that is initiated by the sink module. A pulled packet can be passed as a whole using pullPacket(), or it can be streamed from the source to the sink using pullPacketStart(), pullPacketEnd(), and pullPacketProgress().

For output gates, true means that the connected module can pull packets from this module. For input gates, true means that this module can pull packets from the connected module. For example, a packet server module can pull packets from a queue module.

Connecting incompatible gates raises an error during initialize. The gate parameter must be a valid gate of this module. The gate should be marked with @labels(pull) in the NED file.

Reimplemented from inet::queueing::PacketFlowBase.

54 { return true; }

◆ supportsPacketPushing()

virtual bool inet::queueing::PacketGateBase::supportsPacketPushing ( cGate *  gate) const
inlineoverridevirtual

Returns true if the processor supports pushing packets at the given gate.

Pushing a packet is a synchronous operation that is initiated by the source module. A pushed packet can be passed as a whole using pushPacket(), or it can be streamed from the source to the sink using pushPacketStart(), pushPacketEnd(), and pushPacketProgress().

For output gates, true means that this module can push packets into the connected module. For input gates, true means that the connected module can push packets into this module. For example, a packet generator module can push packets into a queue module.

Connecting incompatible gates raises an error during initialize. The gate parameter must be a valid gate of this module. The gate should be marked with @labels(push) in the NED file.

Reimplemented from inet::queueing::PacketFlowBase.

53 { return true; }

◆ updateDisplayString()

void inet::queueing::PacketGateBase::updateDisplayString ( ) const
overrideprotectedvirtual

Reimplemented from inet::queueing::PacketProcessorBase.

112 {
114  getDisplayString().setTagArg("i", 1, isOpen_ ? "green" : "red");
115  getDisplayString().setTagArg("i", 2, 50);
116 }

Referenced by close(), inet::queueing::CreditBasedGate::initialize(), open(), and inet::queueing::CreditBasedGate::refreshDisplay().

Member Data Documentation

◆ bitrate

bps inet::queueing::PacketGateBase::bitrate = bps(NaN)
protected

◆ extraDuration

simtime_t inet::queueing::PacketGateBase::extraDuration
protected

◆ extraLength

b inet::queueing::PacketGateBase::extraLength = b(-1)
protected

◆ gateStateChangedSignal

simsignal_t inet::queueing::PacketGateBase::gateStateChangedSignal = registerSignal("gateStateChanged")
static

Referenced by close(), initialize(), and open().

◆ isOpen_


The documentation for this class was generated from the following files:
inet::INITSTAGE_LAST
INET_API InitStage INITSTAGE_LAST
Operations that no other initializations can depend on, e.g.
inet::queueing::PacketFlowBase::canPushPacket
virtual bool canPushPacket(Packet *packet, cGate *gate) const override
Returns true if the given packet can be pushed at the given gate into the packet sink without raising...
Definition: PacketFlowBase.cc:61
inet::units::units::bps
compose< b, pow< s, -1 > > bps
Definition: Units.h:1169
inet::queueing::PacketFlowBase::canPushSomePacket
virtual bool canPushSomePacket(cGate *gate) const override
Returns false if the packet sink is full at the given gate and no more packets can be pushed into it ...
Definition: PacketFlowBase.cc:56
inet::queueing::PacketGateBase::isOpen_
bool isOpen_
Definition: PacketGateBase.h:31
inet::queueing::PacketGateBase::extraLength
b extraLength
Definition: PacketGateBase.h:28
inet::queueing::PacketFlowBase::handleCanPullPacketChanged
virtual void handleCanPullPacketChanged(cGate *gate) override
Notifies about a change in the possibility of pulling some packet from the passive packet source at t...
Definition: PacketFlowBase.cc:215
inet::queueing::PacketFlowBase::collector
ModuleRef< IActivePacketSink > collector
Definition: PacketFlowBase.h:29
inet::queueing::PacketFlowBase::outputGate
cGate * outputGate
Definition: PacketFlowBase.h:27
inet::queueing::PacketGateBase::bitrate
bps bitrate
Definition: PacketGateBase.h:27
EV_FIELD
#define EV_FIELD(...)
Definition: INETDefs.h:112
inet::queueing::PacketGateBase::gateStateChangedSignal
static simsignal_t gateStateChangedSignal
Definition: PacketGateBase.h:24
inet::queueing::PacketFlowBase::producer
ModuleRef< IActivePacketSource > producer
Definition: PacketFlowBase.h:23
inet::INITSTAGE_LOCAL
INET_API InitStage INITSTAGE_LOCAL
Initialization of local state that don't use or affect other modules includes:
inet::queueing::PacketFlowBase::inputGate
cGate * inputGate
Definition: PacketFlowBase.h:22
inet::queueing::PacketFlowBase::canPullSomePacket
virtual bool canPullSomePacket(cGate *gate) const override
Returns false if the packet source is empty at the given gate and no more packets can be pulled from ...
Definition: PacketFlowBase.cc:141
inet::units::values::b
value< int64_t, units::b > b
Definition: Units.h:1241
inet::queueing::PacketGateBase::canPacketFlowThrough
virtual bool canPacketFlowThrough(Packet *packet) const
Definition: PacketGateBase.cc:106
inet::queueing::PacketProcessorBase::updateDisplayString
virtual void updateDisplayString() const
Definition: PacketProcessorBase.cc:399
inet::queueing::PacketFlowBase::initialize
virtual void initialize(int stage) override
Definition: PacketFlowBase.cc:15
inet::queueing::PacketFlowBase::handleCanPushPacketChanged
virtual void handleCanPushPacketChanged(cGate *gate) override
Notifies about a change in the possibility of pushing some packet into the passive packet sink at the...
Definition: PacketFlowBase.cc:126
inet::queueing::PacketFlowBase::canPullPacket
virtual Packet * canPullPacket(cGate *gate) const override
Returns the packet that can be pulled at the given gate.
Definition: PacketFlowBase.cc:146
Enter_Method
#define Enter_Method(...)
Definition: SelfDoc.h:71
inet::queueing::PacketGateBase::updateDisplayString
virtual void updateDisplayString() const override
Definition: PacketGateBase.cc:111
EV_ENDL
#define EV_ENDL
Definition: INETDefs.h:114
inet::queueing::PacketGateBase::extraDuration
simtime_t extraDuration
Definition: PacketGateBase.h:29