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

#include <MarkovScheduler.h>

Inheritance diagram for inet::queueing::MarkovScheduler:
inet::ClockUserModuleMixin< PacketSchedulerBase > inet::queueing::IPassivePacketSink inet::queueing::IActivePacketSource inet::queueing::PacketSchedulerBase 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 ~MarkovScheduler ()
 
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 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 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...
 
virtual const char * resolveDirective (char directive) const override
 
- Public Member Functions inherited from inet::ClockUserModuleMixin< PacketSchedulerBase >
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::PacketSchedulerBase
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 supportsPacketStreaming (cGate *gate) const override
 Returns true if the processor supports streaming 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...
 
- 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 schedulePacket () override
 
virtual void scheduleWaitTimer ()
 
- Protected Member Functions inherited from inet::queueing::PacketSchedulerBase
virtual void mapRegistrationForwardingGates (cGate *gate, std::function< void(cGate *)> f) override
 
virtual size_t getInputGateIndex (size_t i) const
 
virtual int callSchedulePacket () const
 
virtual bool isStreamingPacket () const
 
virtual void startPacketStreaming ()
 
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

std::vector< IActivePacketSource * > producers
 
IPassivePacketSinkconsumer = nullptr
 
std::vector< std::vector< double > > transitionProbabilities
 
std::vector< cDynamicExpression > waitIntervals
 
int state
 
ClockEventwaitTimer = nullptr
 
- Protected Attributes inherited from inet::queueing::PacketSchedulerBase
bool reverseOrder = false
 
std::vector< cGate * > inputGates
 
std::vector< IPassivePacketSource * > providers
 
std::vector< IActivePacketSource * > producers
 
cGate * outputGate = nullptr
 
IActivePacketSinkcollector = nullptr
 
IPassivePacketSinkconsumer = nullptr
 
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

◆ ~MarkovScheduler()

inet::queueing::MarkovScheduler::~MarkovScheduler ( )
virtual

Member Function Documentation

◆ canPushPacket()

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

Implements inet::queueing::IPassivePacketSink.

96 {
97  return canPushSomePacket(gate);
98 }

◆ canPushSomePacket()

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

Implements inet::queueing::IPassivePacketSink.

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

Referenced by canPushPacket().

◆ getConsumer()

virtual IPassivePacketSink* inet::queueing::MarkovScheduler::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.

Implements inet::queueing::IActivePacketSource.

41 { return consumer; }

◆ handleCanPushPacketChanged()

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

Implements inet::queueing::IActivePacketSource.

126 {
127  Enter_Method("handleCanPushPacketChanged");
128  if (producers[state] != nullptr)
129  producers[state]->handleCanPushPacketChanged(inputGates[state]->getPathStartGate());
130 }

◆ handleMessage()

void inet::queueing::MarkovScheduler::handleMessage ( cMessage *  message)
overrideprotectedvirtual
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 (producers[state] != nullptr)
73  producers[state]->handleCanPushPacketChanged(inputGates[state]->getPathStartGate());
75  }
76  else
77  throw cRuntimeError("Unknown message");
78 }

◆ handlePushPacketProcessed()

void inet::queueing::MarkovScheduler::handlePushPacketProcessed ( Packet packet,
cGate *  gate,
bool  successful 
)
overridevirtual

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

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

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

Implements inet::queueing::IActivePacketSource.

133 {
134  Enter_Method("handlePushPacketProcessed");
135  if (producers[state] != nullptr)
136  producers[state]->handlePushPacketProcessed(packet, inputGates[state]->getPathStartGate(), successful);
137 }

◆ initialize()

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

Reimplemented from inet::queueing::PacketSchedulerBase.

23 {
24  if (stage != INITSTAGE_QUEUEING)
25  ClockUserModuleMixin::initialize(stage);
26  if (stage == INITSTAGE_LOCAL) {
27  for (int i = 0; i < gateSize("in"); i++) {
28  auto input = findConnectedModule<IActivePacketSource>(inputGates[i]);
29  producers.push_back(input);
30  }
31  consumer = findConnectedModule<IPassivePacketSink>(outputGate);
32  state = par("initialState");
33  int numStates = gateSize("in");
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& inputGate : inputGates)
51  checkPacketOperationSupport(inputGate);
53  if (producers[state] != nullptr)
54  producers[state]->handleCanPushPacketChanged(inputGates[state]->getPathStartGate());
56  }
57 }

◆ pushPacket()

void inet::queueing::MarkovScheduler::pushPacket ( Packet packet,
cGate *  gate 
)
overridevirtual

Pushes the packet into the packet sink at the given gate.

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

This method is called, for example, when a packet source module pushes a packet into a queue module.

The sink must not be full at the gate. The packet must not be nullptr. The gate must be a valid gate of this module and it must support pushing and passing packets.

Implements inet::queueing::IPassivePacketSink.

101 {
102  Enter_Method("pushPacket");
103  take(packet);
104  if (gate->getIndex() != state)
105  throw cRuntimeError("Cannot push to gate");
106  processedTotalLength += packet->getDataLength();
110 }

◆ pushPacketEnd()

virtual void inet::queueing::MarkovScheduler::pushPacketEnd ( Packet packet,
cGate *  gate 
)
inlineoverridevirtual

Ends pushing the packet into the packet sink 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 to the sink.

The sink must not be full at the gate and no other packet streaming can be in progress. The packet must not be nullptr. The gate must be a valid gate of this module and it must support pushing and streaming packets.

Implements inet::queueing::IPassivePacketSink.

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

◆ pushPacketProgress()

virtual void inet::queueing::MarkovScheduler::pushPacketProgress ( Packet packet,
cGate *  gate,
bps  datarate,
b  position,
b  extraProcessableLength = b(0) 
)
inlineoverridevirtual

Progresses pushing the packet into the packet sink 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 sink about a change in the packet data when a preemption occurs.

The sink must not be full at the gate and no other packet streaming can be in progress. The packet must not be nullptr. The gate must be a valid gate of this module and it must support pushing and streaming packets.

Implements inet::queueing::IPassivePacketSink.

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

◆ pushPacketStart()

virtual void inet::queueing::MarkovScheduler::pushPacketStart ( Packet packet,
cGate *  gate,
bps  datarate 
)
inlineoverridevirtual

Starts pushing the packet into the packet sink 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 to the sink.

The sink must not be full at the gate and no other packet streaming can be in progress. The packet must not be nullptr. The gate must be a valid gate of this module and it must support pushing and streaming packets.

Implements inet::queueing::IPassivePacketSink.

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

◆ resolveDirective()

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

Reimplemented from inet::queueing::PacketProcessorBase.

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

◆ schedulePacket()

int inet::queueing::MarkovScheduler::schedulePacket ( )
overrideprotectedvirtual

Implements inet::queueing::PacketSchedulerBase.

81 {
82  return state;
83 }

◆ scheduleWaitTimer()

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

Referenced by handleMessage(), and initialize().

◆ supportsPacketPulling()

virtual bool inet::queueing::MarkovScheduler::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::PacketSchedulerBase.

44 { return true; }

◆ supportsPacketPushing()

virtual bool inet::queueing::MarkovScheduler::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::PacketSchedulerBase.

43 { return true; }

Member Data Documentation

◆ consumer

IPassivePacketSink* inet::queueing::MarkovScheduler::consumer = nullptr
protected

Referenced by initialize(), and pushPacket().

◆ producers

std::vector<IActivePacketSource *> inet::queueing::MarkovScheduler::producers
protected

◆ state

◆ transitionProbabilities

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

Referenced by handleMessage(), and initialize().

◆ waitIntervals

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

Referenced by initialize(), and scheduleWaitTimer().

◆ waitTimer

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

The documentation for this class was generated from the following files:
inet::queueing::MarkovScheduler::state
int state
Definition: MarkovScheduler.h:27
inet::queueing::PacketProcessorBase::pushOrSendPacket
virtual void pushOrSendPacket(Packet *packet, cGate *gate, IPassivePacketSink *consumer)
Definition: PacketProcessorBase.cc:126
inet::INITSTAGE_QUEUEING
INET_API InitStage INITSTAGE_QUEUEING
Initialization of queueing modules.
inet::ClockUserModuleMixin< PacketSchedulerBase >::scheduleClockEventAfter
virtual void scheduleClockEventAfter(clocktime_t delay, ClockEvent *msg)
Definition: ClockUserModuleMixin.h:65
inet::queueing::MarkovScheduler::transitionProbabilities
std::vector< std::vector< double > > transitionProbabilities
Definition: MarkovScheduler.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::MarkovScheduler::consumer
IPassivePacketSink * consumer
Definition: MarkovScheduler.h:22
inet::ClockUserModuleMixin< PacketSchedulerBase >::cancelAndDeleteClockEvent
virtual void cancelAndDeleteClockEvent(ClockEvent *msg)
Definition: ClockUserModuleMixin.h:67
inet::queueing::MarkovScheduler::waitIntervals
std::vector< cDynamicExpression > waitIntervals
Definition: MarkovScheduler.h:25
inet::queueing::PacketProcessorBase::updateDisplayString
virtual void updateDisplayString() const
Definition: PacketProcessorBase.cc:399
inet::queueing::PacketProcessorBase::checkPacketOperationSupport
virtual void checkPacketOperationSupport(cGate *gate) const
Definition: PacketProcessorBase.cc:40
inet::queueing::PacketSchedulerBase::outputGate
cGate * outputGate
Definition: PacketSchedulerBase.h:28
inet::queueing::MarkovScheduler::producers
std::vector< IActivePacketSource * > producers
Definition: MarkovScheduler.h:21
inet::queueing::PacketSchedulerBase::inputGates
std::vector< cGate * > inputGates
Definition: PacketSchedulerBase.h:24
Enter_Method
#define Enter_Method(...)
Definition: SelfDoc.h:71
inet::queueing::MarkovScheduler::waitTimer
ClockEvent * waitTimer
Definition: MarkovScheduler.h:29
inet::queueing::MarkovScheduler::scheduleWaitTimer
virtual void scheduleWaitTimer()
Definition: MarkovScheduler.cc:85
inet::queueing::MarkovScheduler::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: MarkovScheduler.cc:90