INET Framework for OMNeT++/OMNEST
inet::StreamThroughTransmitter Class Reference

#include <StreamThroughTransmitter.h>

Inheritance diagram for inet::StreamThroughTransmitter:
inet::StreamingTransmitterBase inet::PacketTransmitterBase inet::ClockUserModuleMixin< OperationalMixin< PacketProcessorBase > > inet::queueing::IPassivePacketSink inet::OperationalMixin< PacketProcessorBase > inet::queueing::PacketProcessorBase inet::ILifecycle inet::queueing::IPacketProcessor inet::StringFormat::IDirectiveResolver

Public Member Functions

virtual ~StreamThroughTransmitter ()
 
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...
 
- Public Member Functions inherited from inet::StreamingTransmitterBase
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 void receiveSignal (cComponent *source, simsignal_t signal, cObject *object, cObject *details) override
 
- Public Member Functions inherited from inet::PacketTransmitterBase
virtual ~PacketTransmitterBase ()
 
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 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...
 
- Public Member Functions inherited from inet::ClockUserModuleMixin< OperationalMixin< PacketProcessorBase > >
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::OperationalMixin< PacketProcessorBase >
virtual ~OperationalMixin ()
 }@ 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::ILifecycle
virtual ~ILifecycle ()
 
- Public Member Functions inherited from inet::queueing::IPassivePacketSink
virtual ~IPassivePacketSink ()
 

Protected Member Functions

virtual void initialize (int stage) override
 
virtual void handleMessageWhenUp (cMessage *message) override
 
virtual void handleStopOperation (LifecycleOperation *operation) override
 
virtual void handleCrashOperation (LifecycleOperation *operation) override
 
virtual void startTx (Packet *packet, bps datarate, b position)
 
virtual void progressTx (Packet *packet, bps datarate, b position)
 
virtual void endTx ()
 
virtual void abortTx () override
 
virtual void scheduleBufferUnderrunTimer ()
 
- Protected Member Functions inherited from inet::StreamingTransmitterBase
virtual void scheduleAt (simtime_t t, cMessage *message) override
 
virtual void scheduleTxEndTimer (Signal *signal)
 
- Protected Member Functions inherited from inet::PacketTransmitterBase
virtual void finish () override
 
virtual bool isInitializeStage (int stage) const override
 
virtual bool isModuleStartStage (int stage) const override
 
virtual bool isModuleStopStage (int stage) const override
 
virtual void handleStartOperation (LifecycleOperation *operation) override
 
virtual SignalencodePacket (Packet *packet)
 
virtual void prepareSignal (Signal *signal)
 
virtual void sendSignalStart (Signal *signal, int transmissionId)
 
virtual void sendSignalProgress (Signal *signal, int transmissionId, b bitPosition, clocktime_t timePosition)
 
virtual void sendSignalEnd (Signal *signal, int transmissionId)
 
virtual clocktime_t calculateClockTimeDuration (const Packet *packet) const
 
virtual simtime_t calculateDuration (clocktime_t clockTimeDuration) const
 
virtual bool isTransmitting () const
 
- Protected Member Functions inherited from inet::OperationalMixin< PacketProcessorBase >
virtual int numInitStages () const override
 
virtual void refreshDisplay () const override
 
virtual void handleMessage (cMessage *msg) override
 
virtual void handleMessageWhenDown (cMessage *msg)
 
virtual bool handleOperationStage (LifecycleOperation *operation, IDoneCallback *doneCallback) override
 Perform one stage of a lifecycle operation. More...
 
virtual State getInitialOperationalState () const
 Returns initial operational state: OPERATING or NOT_OPERATING. More...
 
virtual void handleActiveOperationTimeout (cMessage *message)
 
virtual bool isUp () const
 utility functions More...
 
virtual bool isDown () const
 
virtual void setOperationalState (State newState)
 
virtual void scheduleOperationTimeout (simtime_t timeout)
 
virtual void setupActiveOperation (LifecycleOperation *operation, IDoneCallback *doneCallback, State)
 
virtual void delayActiveOperationFinish (simtime_t timeout)
 
virtual void startActiveOperationExtraTime (simtime_t delay=SIMTIME_ZERO)
 
virtual void startActiveOperationExtraTimeOrFinish (simtime_t extraTime)
 
virtual void finishActiveOperation ()
 
- 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

simtime_t lastTxProgressTime = -1
 
b lastTxProgressPosition = b(-1)
 
bps lastInputDatarate = bps(NaN)
 
simtime_t lastInputProgressTime = -1
 
b lastInputProgressPosition = b(-1)
 
cMessage * bufferUnderrunTimer = nullptr
 
- Protected Attributes inherited from inet::StreamingTransmitterBase
cChannel * transmissionChannel = nullptr
 
- Protected Attributes inherited from inet::PacketTransmitterBase
cPar * dataratePar = nullptr
 
cGate * inputGate = nullptr
 
cGate * outputGate = nullptr
 
ModuleRef< IActivePacketSourceproducer
 
bps txDatarate = bps(NaN)
 
SignaltxSignal = nullptr
 
ClockEventtxEndTimer = nullptr
 
simtime_t txStartTime = -1
 
clocktime_t txStartClockTime = -1
 
clocktime_t txDurationClockTime = -1
 
- Protected Attributes inherited from inet::OperationalMixin< PacketProcessorBase >
State operationalState
 
simtime_t lastChange
 
Operation activeOperation
 
cMessage * activeOperationTimeout
 
cMessage * activeOperationExtraTimer
 
- 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::OperationalMixin< PacketProcessorBase >
enum  State
 
- Protected Types inherited from inet::queueing::PacketProcessorBase
enum  Action { PUSH, PULL }
 

Constructor & Destructor Documentation

◆ ~StreamThroughTransmitter()

virtual inet::StreamThroughTransmitter::~StreamThroughTransmitter ( )
inlinevirtual
43 { cancelAndDelete(bufferUnderrunTimer); }

Member Function Documentation

◆ abortTx()

void inet::StreamThroughTransmitter::abortTx ( )
overrideprotectedvirtual

Implements inet::StreamingTransmitterBase.

131 {
132  // 1. check current state
133  ASSERT(isTransmitting());
134  // 2. create new truncated signal
135  auto packet = check_and_cast<Packet *>(txSignal->decapsulate());
136  // TODO we can't just simply cut the packet proportionally with time because it's not always the case (modulation, scrambling, etc.)
137  simtime_t timePosition = simTime() - txStartTime;
138  b dataPosition = b(std::floor(txDatarate.get() * timePosition.dbl()));
139  packet->eraseAtBack(packet->getTotalLength() - dataPosition);
140  packet->setBitError(true);
141  auto signal = encodePacket(packet);
142  signal->setDuration(timePosition);
143  // 3. delete old signal
144  delete txSignal;
145  txSignal = nullptr;
146  // 4. send signal end to receiver and notify subscribers
147  EV_INFO << "Aborting transmission" << EV_FIELD(packet) << EV_FIELD(datarate, txDatarate) << EV_ENDL;
148  handlePacketProcessed(packet);
149  emit(transmissionEndedSignal, signal);
150  sendSignalEnd(signal, packet->getTransmissionId());
151  // 5. clear internal state
152  txDatarate = bps(NaN);
153  txStartTime = -1;
154  txStartClockTime = -1;
155  lastTxProgressTime = -1;
160  // 6. notify producer
161  auto gate = inputGate->getPathStartGate();
162  if (producer != nullptr) {
163  producer->handlePushPacketProcessed(packet, gate, true);
164  producer->handleCanPushPacketChanged(gate);
165  }
166 }

Referenced by handleCrashOperation(), and handleStopOperation().

◆ endTx()

void inet::StreamThroughTransmitter::endTx ( )
protectedvirtual
103 {
104  // 1. check current state
105  ASSERT(isTransmitting());
106  // 2. send signal end to receiver and notify subscribers
107  auto packet = check_and_cast<Packet *>(txSignal->getEncapsulatedPacket());
108  EV_INFO << "Ending transmission" << EV_FIELD(packet) << EV_FIELD(datarate, txDatarate) << EV_ENDL;
109  handlePacketProcessed(packet);
111  sendSignalEnd(txSignal, packet->getTransmissionId());
112  // 3. clear internal state
113  txSignal = nullptr;
114  txDatarate = bps(NaN);
115  txStartTime = -1;
116  txStartClockTime = -1;
117  lastTxProgressTime = -1;
122  // 4. notify producer
123  auto gate = inputGate->getPathStartGate();
124  if (producer != nullptr) {
125  producer->handlePushPacketProcessed(packet, gate, true);
126  producer->handleCanPushPacketChanged(gate);
127  }
128 }

Referenced by handleMessageWhenUp().

◆ handleCrashOperation()

void inet::StreamThroughTransmitter::handleCrashOperation ( LifecycleOperation operation)
overrideprotectedvirtual

Implements inet::OperationalMixin< PacketProcessorBase >.

39 {
40  if (isTransmitting())
41  abortTx();
42 }

◆ handleMessageWhenUp()

void inet::StreamThroughTransmitter::handleMessageWhenUp ( cMessage *  message)
overrideprotectedvirtual

Reimplemented from inet::PacketTransmitterBase.

22 {
23  if (message == txEndTimer)
24  endTx();
25  else if (message == bufferUnderrunTimer)
26  throw cRuntimeError("Buffer underrun during transmission");
27  else
30 }

◆ handleStopOperation()

void inet::StreamThroughTransmitter::handleStopOperation ( LifecycleOperation operation)
overrideprotectedvirtual

Implements inet::OperationalMixin< PacketProcessorBase >.

33 {
34  if (isTransmitting())
35  abortTx();
36 }

◆ initialize()

void inet::StreamThroughTransmitter::initialize ( int  stage)
overrideprotectedvirtual

Reimplemented from inet::StreamingTransmitterBase.

15 {
17  if (stage == INITSTAGE_LOCAL)
18  bufferUnderrunTimer = new cMessage("BufferUnderrunTimer");
19 }

◆ progressTx()

void inet::StreamThroughTransmitter::progressTx ( Packet packet,
bps  datarate,
b  position 
)
protectedvirtual
71 {
72  // 1. check current state
73  ASSERT(isTransmitting());
74  // 2. store input progress
75  b inputProgressPosition = lastInputProgressPosition + b(std::floor((simTime() - lastInputProgressTime).dbl() * lastInputDatarate.get()));
76  auto txPacket = check_and_cast<Packet *>(txSignal->getEncapsulatedPacket());
77  bool isInputProgressAtEnd = inputProgressPosition == packet->getTotalLength() && packet->getTotalLength() == txPacket->getTotalLength();
78  bool isPacketUnchangedSinceLastProgress = isInputProgressAtEnd || packet->peekAll()->containsSameData(*txPacket->peekAll().get());
79  lastInputDatarate = datarate;
80  lastInputProgressTime = simTime();
81  lastInputProgressPosition = position;
82  // 3. store transmission progress
83  clocktime_t timePosition = getClockTime() - txStartClockTime;
84  lastTxProgressTime = simTime();
85  lastTxProgressPosition = b(std::floor(txDatarate.get() * timePosition.dbl()));
86  if (isPacketUnchangedSinceLastProgress)
87  delete packet;
88  else {
89  // 4. create progress signal
90  auto signal = encodePacket(packet);
91  delete txSignal;
92  txSignal = signal->dup();
93  // 5. send signal progress
94  EV_INFO << "Progressing transmission" << EV_FIELD(packet) << EV_FIELD(datarate, txDatarate) << EV_ENDL;
95  sendSignalProgress(signal, packet->getTransmissionId(), lastTxProgressPosition, timePosition);
96  }
97  // 6. reschedule timers
100 }

Referenced by pushPacketEnd(), and pushPacketProgress().

◆ pushPacket()

virtual void inet::StreamThroughTransmitter::pushPacket ( Packet packet,
cGate *  gate 
)
inlineoverridevirtual

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.

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

◆ pushPacketEnd()

void inet::StreamThroughTransmitter::pushPacketEnd ( Packet packet,
cGate *  gate 
)
overridevirtual

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.

Reimplemented from inet::PacketTransmitterBase.

190 {
191  Enter_Method("pushPacketEnd");
192  ASSERT(txSignal != nullptr);
193  take(packet);
194  progressTx(packet, bps(NaN), packet->getTotalLength());
196 }

◆ pushPacketProgress()

void inet::StreamThroughTransmitter::pushPacketProgress ( Packet packet,
cGate *  gate,
bps  datarate,
b  position,
b  extraProcessableLength = b(0) 
)
overridevirtual

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.

Reimplemented from inet::PacketTransmitterBase.

199 {
200  Enter_Method("pushPacketProgress");
201  take(packet);
202  if (isTransmitting())
203  progressTx(packet, datarate, position);
204  else
205  startTx(packet, datarate, position);
207 }

◆ pushPacketStart()

void inet::StreamThroughTransmitter::pushPacketStart ( Packet packet,
cGate *  gate,
bps  datarate 
)
overridevirtual

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.

Reimplemented from inet::PacketTransmitterBase.

182 {
183  Enter_Method("pushPacketStart");
184  take(packet);
185  startTx(packet, datarate, b(0));
187 }

◆ scheduleBufferUnderrunTimer()

void inet::StreamThroughTransmitter::scheduleBufferUnderrunTimer ( )
protectedvirtual
169 {
170  cancelEvent(bufferUnderrunTimer);
172  // Underrun occurs when the following two values become equal:
173  // inputProgressPosition = lastInputProgressPosition + inputDatarate * (simTime() - lastInputProgressTime)
174  // txProgressPosition = lastTxProgressPosition + txDatarate * (simTime() - lastTxProgressTime)
176  EV_INFO << "Scheduling buffer underrun timer" << EV_FIELD(at, bufferUnderrunTime.ustr()) << EV_ENDL;
177  scheduleAt(bufferUnderrunTime, bufferUnderrunTimer);
178  }
179 }

Referenced by progressTx(), and startTx().

◆ startTx()

void inet::StreamThroughTransmitter::startTx ( Packet packet,
bps  datarate,
b  position 
)
protectedvirtual
45 {
46  // 1. check current state
47  ASSERT(!isTransmitting());
48  // 2. store input progress
49  lastInputDatarate = datarate;
50  lastInputProgressTime = simTime();
51  lastInputProgressPosition = position;
52  // 3. store transmission progress
54  txStartTime = simTime();
56  lastTxProgressTime = simTime();
58  // 4. create signal
59  auto signal = encodePacket(packet);
60  txSignal = signal->dup();
61  // 5. send signal start and notify subscribers
62  EV_INFO << "Starting transmission" << EV_FIELD(packet) << EV_FIELD(datarate, txDatarate) << EV_ENDL;
63  emit(transmissionStartedSignal, signal);
64  sendSignalStart(signal, packet->getTransmissionId());
65  // 6. schedule transmission end timer and buffer underrun timer
68 }

Referenced by pushPacketProgress(), and pushPacketStart().

◆ supportsPacketStreaming()

virtual bool inet::StreamThroughTransmitter::supportsPacketStreaming ( cGate *  gate) const
inlineoverridevirtual

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

A streamed packet is handed over from one module to another using several method calls and potentially exending to a non-zero simulation duration.

For example, packets are streamed to a preemptable signal transmitter 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(stream) in the NED file.

Reimplemented from inet::queueing::PacketProcessorBase.

45 { return true; }

Member Data Documentation

◆ bufferUnderrunTimer

cMessage* inet::StreamThroughTransmitter::bufferUnderrunTimer = nullptr
protected

◆ lastInputDatarate

bps inet::StreamThroughTransmitter::lastInputDatarate = bps(NaN)
protected

◆ lastInputProgressPosition

b inet::StreamThroughTransmitter::lastInputProgressPosition = b(-1)
protected

◆ lastInputProgressTime

simtime_t inet::StreamThroughTransmitter::lastInputProgressTime = -1
protected

◆ lastTxProgressPosition

b inet::StreamThroughTransmitter::lastTxProgressPosition = b(-1)
protected

◆ lastTxProgressTime

simtime_t inet::StreamThroughTransmitter::lastTxProgressTime = -1
protected

The documentation for this class was generated from the following files:
inet::StreamThroughTransmitter::bufferUnderrunTimer
cMessage * bufferUnderrunTimer
Definition: StreamThroughTransmitter.h:27
inet::StreamThroughTransmitter::lastTxProgressTime
simtime_t lastTxProgressTime
Definition: StreamThroughTransmitter.h:19
inet::StreamingTransmitterBase::scheduleAt
virtual void scheduleAt(simtime_t t, cMessage *message) override
Definition: StreamingTransmitterBase.cc:26
inet::clocktime_t
ClockTime clocktime_t
Definition: contract/ClockTime.h:25
inet::StreamingTransmitterBase::initialize
virtual void initialize(int stage) override
Definition: StreamingTransmitterBase.cc:12
inet::StreamThroughTransmitter::lastTxProgressPosition
b lastTxProgressPosition
Definition: StreamThroughTransmitter.h:20
inet::PacketTransmitterBase::inputGate
cGate * inputGate
Definition: PacketTransmitterBase.h:30
inet::PacketTransmitterBase::txStartClockTime
clocktime_t txStartClockTime
Definition: PacketTransmitterBase.h:39
inet::PacketTransmitterBase::isTransmitting
virtual bool isTransmitting() const
Definition: PacketTransmitterBase.h:61
inet::PacketTransmitterBase::handleMessageWhenUp
virtual void handleMessageWhenUp(cMessage *message) override
Definition: PacketTransmitterBase.cc:49
inet::units::units::bps
compose< b, pow< s, -1 > > bps
Definition: Units.h:1169
inet::PacketTransmitterBase::dataratePar
cPar * dataratePar
Definition: PacketTransmitterBase.h:28
inet::StreamThroughTransmitter::progressTx
virtual void progressTx(Packet *packet, bps datarate, b position)
Definition: StreamThroughTransmitter.cc:70
inet::physicallayer::Signal::dup
virtual Signal * dup() const override
Definition: Signal.h:22
inet::PacketTransmitterBase::txSignal
Signal * txSignal
Definition: PacketTransmitterBase.h:35
inet::StreamThroughTransmitter::endTx
virtual void endTx()
Definition: StreamThroughTransmitter.cc:102
inet::StreamThroughTransmitter::scheduleBufferUnderrunTimer
virtual void scheduleBufferUnderrunTimer()
Definition: StreamThroughTransmitter.cc:168
inet::ClockUserModuleMixin< OperationalMixin< PacketProcessorBase > >::getClockTime
virtual clocktime_t getClockTime() const
Definition: ClockUserModuleMixin.h:72
inet::PacketTransmitterBase::sendSignalStart
virtual void sendSignalStart(Signal *signal, int transmissionId)
Definition: PacketTransmitterBase.cc:92
inet::queueing::PacketProcessorBase::handlePacketProcessed
virtual void handlePacketProcessed(Packet *packet)
Definition: PacketProcessorBase.cc:34
inet::PacketTransmitterBase::sendSignalEnd
virtual void sendSignalEnd(Signal *signal, int transmissionId)
Definition: PacketTransmitterBase.cc:107
inet::units::values::s
value< double, units::s > s
Definition: Units.h:1235
inet::transmissionEndedSignal
simsignal_t transmissionEndedSignal
Definition: Simsignals.cc:117
inet::StreamThroughTransmitter::abortTx
virtual void abortTx() override
Definition: StreamThroughTransmitter.cc:130
inet::StreamThroughTransmitter::lastInputProgressTime
simtime_t lastInputProgressTime
Definition: StreamThroughTransmitter.h:24
EV_FIELD
#define EV_FIELD(...)
Definition: INETDefs.h:112
inet::transmissionStartedSignal
simsignal_t transmissionStartedSignal
Definition: Simsignals.cc:116
inet::StreamThroughTransmitter::lastInputDatarate
bps lastInputDatarate
Definition: StreamThroughTransmitter.h:23
NaN
#define NaN
Definition: INETMath.h:91
inet::INITSTAGE_LOCAL
INET_API InitStage INITSTAGE_LOCAL
Initialization of local state that don't use or affect other modules includes:
inet::units::values::b
value< int64_t, units::b > b
Definition: Units.h:1241
inet::StreamThroughTransmitter::startTx
virtual void startTx(Packet *packet, bps datarate, b position)
Definition: StreamThroughTransmitter.cc:44
inet::queueing::PacketProcessorBase::updateDisplayString
virtual void updateDisplayString() const
Definition: PacketProcessorBase.cc:399
inet::StreamingTransmitterBase::scheduleTxEndTimer
virtual void scheduleTxEndTimer(Signal *signal)
Definition: StreamingTransmitterBase.cc:44
inet::PacketTransmitterBase::txDatarate
bps txDatarate
Definition: PacketTransmitterBase.h:34
inet::PacketTransmitterBase::encodePacket
virtual Signal * encodePacket(Packet *packet)
Definition: PacketTransmitterBase.cc:61
inet::StreamThroughTransmitter::lastInputProgressPosition
b lastInputProgressPosition
Definition: StreamThroughTransmitter.h:25
Enter_Method
#define Enter_Method(...)
Definition: SelfDoc.h:71
inet::units::value::get
const value_type & get() const
Definition: Units.h:108
inet::PacketTransmitterBase::txEndTimer
ClockEvent * txEndTimer
Definition: PacketTransmitterBase.h:36
inet::PacketTransmitterBase::txStartTime
simtime_t txStartTime
Definition: PacketTransmitterBase.h:38
inet::PacketTransmitterBase::producer
ModuleRef< IActivePacketSource > producer
Definition: PacketTransmitterBase.h:32
EV_ENDL
#define EV_ENDL
Definition: INETDefs.h:114
inet::PacketTransmitterBase::sendSignalProgress
virtual void sendSignalProgress(Signal *signal, int transmissionId, b bitPosition, clocktime_t timePosition)
Definition: PacketTransmitterBase.cc:99