INET Framework for OMNeT++/OMNEST
|
#include <SignalPacketModel.h>
Public Member Functions | |
ReceptionPacketModel (const cPacket *packet, const BitVector *serializedPacket, bps bitrate, double per, bool packetErrorless) | |
virtual double | getPER () const override |
Returns the packet error rate (probability). More... | |
virtual bool | isPacketErrorless () const override |
Returns true if the packet is actually free of errors. More... | |
Public Member Functions inherited from inet::physicallayer::SignalPacketModel | |
SignalPacketModel (const cPacket *packet, const BitVector *serializedPacket, bps bitrate) | |
virtual | ~SignalPacketModel () |
virtual std::ostream & | printToStream (std::ostream &stream, int level) const override |
Prints this object to the provided output stream. More... | |
virtual const cPacket * | getPacket () const override |
virtual const BitVector * | getSerializedPacket () const override |
virtual bps | getBitrate () const override |
Returns the net bitrate (datarate) of the packet. More... | |
Public Member Functions inherited from inet::physicallayer::IPrintableObject | |
virtual | ~IPrintableObject () |
virtual std::string | getInfoStringRepresentation () const |
virtual std::string | getDetailStringRepresentation () const |
virtual std::string | getDebugStringRepresentation () const |
virtual std::string | getTraceStringRepresentation () const |
virtual std::string | getCompleteStringRepresentation () const |
Protected Attributes | |
const double | per |
const bool | packetErrorless |
Protected Attributes inherited from inet::physicallayer::SignalPacketModel | |
const cPacket * | packet |
const BitVector * | serializedPacket |
const bps | bitrate |
Additional Inherited Members | |
Public Types inherited from inet::physicallayer::IPrintableObject | |
enum | PrintLevel { PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO, PRINT_LEVEL_COMPLETE = INT_MIN } |
inet::physicallayer::ReceptionPacketModel::ReceptionPacketModel | ( | const cPacket * | packet, |
const BitVector * | serializedPacket, | ||
bps | bitrate, | ||
double | per, | ||
bool | packetErrorless | ||
) |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Returns true if the packet is actually free of errors.
Implements inet::physicallayer::IReceptionPacketModel.
|
protected |
|
protected |