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

#include <MarkovClassifier.h>

Inheritance diagram for inet::queueing::MarkovClassifier:
inet::ClockUserModuleMixin< PacketClassifierBase > inet::queueing::IActivePacketSink inet::queueing::IPassivePacketSource inet::queueing::PacketClassifierBase inet::queueing::PacketProcessorBase inet::TransparentProtocolRegistrationListener inet::queueing::IPacketSink inet::queueing::IPacketSource inet::queueing::IActivePacketSource inet::queueing::IPassivePacketSource inet::queueing::IActivePacketSink inet::queueing::IPassivePacketSink inet::IProtocolRegistrationListener inet::StringFormat::IDirectiveResolver inet::queueing::IPacketProcessor

Public Member Functions

virtual ~MarkovClassifier ()
 
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 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 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 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...
 
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 const char * resolveDirective (char directive) const override
 
- Public Member Functions inherited from inet::ClockUserModuleMixin< PacketClassifierBase >
virtual void scheduleClockEventAt (clocktime_t time, ClockEvent *msg)
 
virtual void scheduleClockEventAfter (clocktime_t delay, ClockEvent *msg)
 
virtual cMessage * cancelClockEvent (ClockEvent *msg)
 
virtual void cancelAndDeleteClockEvent (ClockEvent *msg)
 
virtual void rescheduleClockEventAt (clocktime_t time, ClockEvent *msg)
 
virtual void rescheduleClockEventAfter (clocktime_t time, ClockEvent *msg)
 
virtual clocktime_t computeClockTimeFromSimTime (simtime_t time) const
 
virtual simtime_t computeSimTimeFromClockTime (clocktime_t time) const
 
virtual clocktime_t getClockTime () const
 
virtual clocktime_t getArrivalClockTime (ClockEvent *msg) const
 
- Public Member Functions inherited from inet::queueing::PacketClassifierBase
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 bool supportsPacketStreaming (cGate *gate) const override
 Returns true if the processor supports streaming 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 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 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 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...
 
- 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...
 
- Public Member Functions inherited from inet::queueing::IPacketProcessor
virtual ~IPacketProcessor ()
 
- Public Member Functions inherited from inet::TransparentProtocolRegistrationListener
virtual cGate * getRegistrationForwardingGate (cGate *gate)
 
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
 
- 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 ()
 

Protected Member Functions

virtual void initialize (int stage) override
 
virtual void handleMessage (cMessage *message) override
 
virtual int classifyPacket (Packet *packet) override
 
virtual void scheduleWaitTimer ()
 
- Protected Member Functions inherited from inet::queueing::PacketClassifierBase
virtual void mapRegistrationForwardingGates (cGate *gate, std::function< void(cGate *)> f) override
 
virtual size_t getOutputGateIndex (size_t i) const
 
virtual int callClassifyPacket (Packet *packet) const
 
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)
 
virtual void updateDisplayString () const
 

Protected Attributes

IPassivePacketSourceprovider = nullptr
 
std::vector< IActivePacketSink * > collectors
 
std::vector< std::vector< double > > transitionProbabilities
 
std::vector< cDynamicExpression > waitIntervals
 
int state
 
ClockEventwaitTimer = nullptr
 
- Protected Attributes inherited from inet::queueing::PacketClassifierBase
bool reverseOrder = false
 
cGate * inputGate = nullptr
 
IActivePacketSourceproducer = nullptr
 
IPassivePacketSourceprovider = nullptr
 
std::vector< cGate * > outputGates
 
std::vector< IPassivePacketSink * > consumers
 
std::vector< IActivePacketSink * > collectors
 
int inProgressStreamId = -1
 
int inProgressGateIndex = -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 }
 

Constructor & Destructor Documentation

◆ ~MarkovClassifier()

inet::queueing::MarkovClassifier::~MarkovClassifier ( )
virtual

Member Function Documentation

◆ canPullPacket()

Packet * inet::queueing::MarkovClassifier::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.

Implements inet::queueing::IPassivePacketSource.

96 {
97  return canPullSomePacket(gate) ? provider->canPullPacket(inputGate->getPathStartGate()) : nullptr;
98 }

◆ canPullSomePacket()

bool inet::queueing::MarkovClassifier::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.

Implements inet::queueing::IPassivePacketSource.

91 {
92  return gate->getIndex() == state;
93 }

Referenced by canPullPacket().

◆ classifyPacket()

int inet::queueing::MarkovClassifier::classifyPacket ( Packet packet)
overrideprotectedvirtual

Implements inet::queueing::PacketClassifierBase.

81 {
82  return state;
83 }

◆ getProvider()

virtual IPassivePacketSource* inet::queueing::MarkovClassifier::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.

Implements inet::queueing::IActivePacketSink.

42 { return provider; }

◆ handleCanPullPacketChanged()

void inet::queueing::MarkovClassifier::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.

Implements inet::queueing::IActivePacketSink.

128 {
129  Enter_Method("handleCanPullPacketChanged");
130  if (collectors[state] != nullptr)
131  collectors[state]->handleCanPullPacketChanged(outputGates[state]->getPathEndGate());
132 }

◆ handleMessage()

void inet::queueing::MarkovClassifier::handleMessage ( cMessage *  message)
overrideprotectedvirtual

Reimplemented from inet::queueing::PacketClassifierBase.

60 {
61  if (message == waitTimer) {
62  double v = uniform(0, 1);
63  double sum = 0;
64  int numStates = (int)transitionProbabilities.size();
65  for (int i = 0; i < numStates; i++) {
66  sum += transitionProbabilities[state][i];
67  if (sum >= v || i == numStates - 1) {
68  state = i;
69  break;
70  }
71  }
72  if (collectors[state] != nullptr)
73  collectors[state]->handleCanPullPacketChanged(outputGates[state]->getPathEndGate());
75  }
76  else
77  throw cRuntimeError("Unknown message");
78 }

◆ handlePullPacketProcessed()

void inet::queueing::MarkovClassifier::handlePullPacketProcessed ( Packet packet,
cGate *  gate,
bool  successful 
)
overridevirtual

Notifies about the completion of the packet processing for a packet that was pulled earlier independently whether the packet is passed or streamed.

This method is called, for example, when a previously pulled packet is failed to be processed successfully. It allows the sink to retry the operation.

The gate parameter must be a valid gate of this module. The packet must not be nullptr.

Implements inet::queueing::IActivePacketSink.

135 {
136  Enter_Method("handlePullPacketProcessed");
137  if (collectors[state] != nullptr)
138  collectors[state]->handlePullPacketProcessed(packet, outputGates[state]->getPathEndGate(), successful);
139 }

◆ initialize()

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

Reimplemented from inet::queueing::PacketClassifierBase.

23 {
24  if (stage != INITSTAGE_QUEUEING)
25  ClockUserModuleMixin::initialize(stage);
26  if (stage == INITSTAGE_LOCAL) {
27  for (int i = 0; i < gateSize("out"); i++) {
28  auto output = findConnectedModule<IActivePacketSink>(outputGates[i]);
29  collectors.push_back(output);
30  }
31  provider = findConnectedModule<IPassivePacketSource>(inputGate);
32  state = par("initialState");
33  int numStates = gateSize("out");
34  cStringTokenizer transitionProbabilitiesTokenizer(par("transitionProbabilities"));
35  for (int i = 0; i < numStates; i++) {
36  transitionProbabilities.push_back({});
37  for (int j = 0; j < numStates; j++)
38  transitionProbabilities[i].push_back(atof(transitionProbabilitiesTokenizer.nextToken()));
39  }
40  cStringTokenizer waitIntervalsTokenizer(par("waitIntervals"));
41  for (int i = 0; i < numStates; i++) {
42  cDynamicExpression expression;
43  expression.parse(waitIntervalsTokenizer.nextToken());
44  waitIntervals.push_back(expression);
45  }
46  waitTimer = new ClockEvent("WaitTimer");
47  WATCH(state);
48  }
49  else if (stage == INITSTAGE_QUEUEING) {
50  for (auto& outputGate : outputGates)
51  checkPacketOperationSupport(outputGate);
53  if (collectors[state] != nullptr)
54  collectors[state]->handleCanPullPacketChanged(outputGates[state]->getPathEndGate());
56  }
57 }

◆ pullPacket()

Packet * inet::queueing::MarkovClassifier::pullPacket ( cGate *  gate)
overridevirtual

Pulls the packet from the packet source at the given gate.

This operation pulls the packet as a whole. The onwership of the packet is transferred to the sink.

The source must not be empty at the given gate. The returned packet must not be nullptr. The gate must be a valid gate of this module and it must support pulling and passing packets.

Implements inet::queueing::IPassivePacketSource.

101 {
102  Enter_Method("pullPacket");
103  if (gate->getIndex() != state)
104  throw cRuntimeError("Cannot pull from gate");
105  auto packet = provider->pullPacket(inputGate->getPathEndGate());
106  take(packet);
107  animatePullPacket(packet, gate);
109  processedTotalLength += packet->getDataLength();
111  return packet;
112 }

◆ pullPacketEnd()

virtual Packet* inet::queueing::MarkovClassifier::pullPacketEnd ( cGate *  gate)
inlineoverridevirtual

Ends pulling the packet from the packet source at the given gate.

This is a packet streaming operation. The onwership of the packet is transferred to the sink.

Packet streaming can be started with any of the streaming operations, and ends when the streaming position plus the extra processable packet length equals to the total packet length.

This method is called, for example, when a preemption supporting server module ends streaming a packet from the the source.

The source must not be empty at the gate and no other packet streaming can be in progress. The gate must be a valid gate of this module and it must support pulling and streaming packets. The returned packet must not be nullptr.

Implements inet::queueing::IPassivePacketSource.

53 { throw cRuntimeError("Invalid operation"); }

◆ pullPacketProgress()

virtual Packet* inet::queueing::MarkovClassifier::pullPacketProgress ( cGate *  gate,
bps  datarate,
b  position,
b  extraProcessableLength 
)
inlineoverridevirtual

Progresses pulling the packet from the packet source at the given gate.

This is a packet streaming operation. The position specifies where the packet streaming is at the moment. The extra length parameter partially fixes the future of the packet streaming operation. The onwership of the packet is transferred to the sink.

Packet streaming can be started with any of the streaming operations, and ends when the streaming position plus the extra processable packet length equals to the total packet length.

This method is called, for example, to notify the source about a change in the packet data when a preemption occurs.

The source must not be empty at the gate and no other packet streaming can be in progress. The gate must be a valid gate of this module and it must support pulling and streaming packets. The returned packet must not be nullptr.

Implements inet::queueing::IPassivePacketSource.

54 { throw cRuntimeError("Invalid operation"); }

◆ pullPacketStart()

virtual Packet* inet::queueing::MarkovClassifier::pullPacketStart ( cGate *  gate,
bps  datarate 
)
inlineoverridevirtual

Starts pulling the packet from the packet source at the given gate.

This is a packet streaming operation. The onwership of the packet is transferred to the sink.

Packet streaming can be started with any of the streaming operations, and ends when the streaming position plus the extra processable packet length equals to the total packet length.

This method is called, for example, when a preemption supporting server module starts streaming a packet from the source.

The source must not be empty at the gate and no other packet streaming can be in progress. The gate must be a valid gate of this module and it must support pulling and streaming packets. The returned packet must not be nullptr.

Implements inet::queueing::IPassivePacketSource.

52 { throw cRuntimeError("Invalid operation"); }

◆ resolveDirective()

const char * inet::queueing::MarkovClassifier::resolveDirective ( char  directive) const
overridevirtual

Reimplemented from inet::queueing::PacketProcessorBase.

115 {
116  static std::string result;
117  switch (directive) {
118  case 's':
119  result = std::to_string(state);
120  break;
121  default:
122  return PacketProcessorBase::resolveDirective(directive);
123  }
124  return result.c_str();
125 }

◆ scheduleWaitTimer()

void inet::queueing::MarkovClassifier::scheduleWaitTimer ( )
protectedvirtual
86 {
88 }

Referenced by handleMessage(), and initialize().

◆ supportsPacketPulling()

virtual bool inet::queueing::MarkovClassifier::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::PacketClassifierBase.

45 { return true; }

◆ supportsPacketPushing()

virtual bool inet::queueing::MarkovClassifier::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::PacketClassifierBase.

44 { return true; }

Member Data Documentation

◆ collectors

std::vector<IActivePacketSink *> inet::queueing::MarkovClassifier::collectors
protected

◆ provider

IPassivePacketSource* inet::queueing::MarkovClassifier::provider = nullptr
protected

◆ state

◆ transitionProbabilities

std::vector<std::vector<double> > inet::queueing::MarkovClassifier::transitionProbabilities
protected

Referenced by handleMessage(), and initialize().

◆ waitIntervals

std::vector<cDynamicExpression> inet::queueing::MarkovClassifier::waitIntervals
protected

Referenced by initialize(), and scheduleWaitTimer().

◆ waitTimer

ClockEvent* inet::queueing::MarkovClassifier::waitTimer = nullptr
protected

The documentation for this class was generated from the following files:
inet::queueing::PacketProcessorBase::animatePullPacket
virtual void animatePullPacket(Packet *packet, cGate *gate) const
Definition: PacketProcessorBase.cc:355
inet::queueing::MarkovClassifier::state
int state
Definition: MarkovClassifier.h:28
inet::INITSTAGE_QUEUEING
INET_API InitStage INITSTAGE_QUEUEING
Initialization of queueing modules.
inet::ClockUserModuleMixin< PacketClassifierBase >::scheduleClockEventAfter
virtual void scheduleClockEventAfter(clocktime_t delay, ClockEvent *msg)
Definition: ClockUserModuleMixin.h:65
inet::queueing::IPassivePacketSource::canPullPacket
virtual Packet * canPullPacket(cGate *gate) const =0
Returns the packet that can be pulled at the given gate.
inet::queueing::PacketClassifierBase::inputGate
cGate * inputGate
Definition: PacketClassifierBase.h:24
inet::queueing::PacketProcessorBase::processedTotalLength
b processedTotalLength
Definition: PacketProcessorBase.h:31
inet::ClockEvent
cMessage ClockEvent
Definition: contract/ClockEvent.h:18
inet::queueing::PacketProcessorBase::resolveDirective
virtual const char * resolveDirective(char directive) const override
Definition: PacketProcessorBase.cc:407
inet::INITSTAGE_LOCAL
INET_API InitStage INITSTAGE_LOCAL
Initialization of local state that don't use or affect other modules includes:
inet::queueing::PacketProcessorBase::numProcessedPackets
int numProcessedPackets
Definition: PacketProcessorBase.h:30
inet::queueing::MarkovClassifier::provider
IPassivePacketSource * provider
Definition: MarkovClassifier.h:22
inet::ClockUserModuleMixin< PacketClassifierBase >::cancelAndDeleteClockEvent
virtual void cancelAndDeleteClockEvent(ClockEvent *msg)
Definition: ClockUserModuleMixin.h:67
inet::queueing::PacketProcessorBase::updateDisplayString
virtual void updateDisplayString() const
Definition: PacketProcessorBase.cc:399
inet::queueing::MarkovClassifier::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: MarkovClassifier.cc:90
inet::queueing::PacketProcessorBase::checkPacketOperationSupport
virtual void checkPacketOperationSupport(cGate *gate) const
Definition: PacketProcessorBase.cc:40
inet::queueing::MarkovClassifier::transitionProbabilities
std::vector< std::vector< double > > transitionProbabilities
Definition: MarkovClassifier.h:25
inet::queueing::MarkovClassifier::waitIntervals
std::vector< cDynamicExpression > waitIntervals
Definition: MarkovClassifier.h:26
Enter_Method
#define Enter_Method(...)
Definition: SelfDoc.h:71
inet::queueing::PacketClassifierBase::outputGates
std::vector< cGate * > outputGates
Definition: PacketClassifierBase.h:28
inet::queueing::MarkovClassifier::collectors
std::vector< IActivePacketSink * > collectors
Definition: MarkovClassifier.h:23
inet::queueing::MarkovClassifier::waitTimer
ClockEvent * waitTimer
Definition: MarkovClassifier.h:30
inet::queueing::IPassivePacketSource::pullPacket
virtual Packet * pullPacket(cGate *gate)=0
Pulls the packet from the packet source at the given gate.
inet::queueing::MarkovClassifier::scheduleWaitTimer
virtual void scheduleWaitTimer()
Definition: MarkovClassifier.cc:85