AirFrame¶
Namespace: simu5g
packet AirFrame
Format of the messages that are sent to the channel
subclass if you want to create your own AirFrame message class
Usage diagram¶
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
cPacket |
(unknown – not in documented files) |
Known subclasses¶
Name |
Type |
Description |
|---|---|---|
packet |
Represents a physical layer transmission frame that encapsulates various types of messages/packets for transmission over the air interface, such as: |
Fields¶
Name |
Type |
Description |
|---|---|---|
pSend |
double |
Power with which this packet is transmitted |
channelNumber |
int |
Channel on which the packet is sent |
duration |
simtime_t |
Time it takes to transmit the packet, in seconds |
bitrate |
double |
|
snr |
double |
|
lossRate |
double |
|
powRec |
double |
Power in the receiver |
senderPos |
inet::Coord |
|
carrierFrequency |
inet::GHz |
|
bandwidth |
double |
|
modulationType |
Source code¶
//
// Format of the messages that are sent to the channel
//
// subclass if you want to create your own ~AirFrame message class
//
packet AirFrame extends cPacket
{
double pSend; // Power with which this packet is transmitted
int channelNumber; // Channel on which the packet is sent
simtime_t duration; // Time it takes to transmit the packet, in seconds
double bitrate;
double snr;
double lossRate;
double powRec; // Power in the receiver
inet::Coord senderPos @nopack;
inet::GHz carrierFrequency;
double bandwidth;
ModulationType modulationType @nopack;
}