MSG File src/simu5g/stack/phy/packet/AirFrame.msg¶
Name |
Type |
Description |
|---|---|---|
packet |
Format of the messages that are sent to the channel |
Source code¶
//
// Simu5G
//
// Copyright (C) 2012-2021 Giovanni Nardini, Giovanni Stea, Antonio Virdis et al. (University of Pisa)
// Copyright (C) 2022-2026 Giovanni Nardini, Giovanni Stea et al. (University of Pisa)
//
// This file is part of a software released under the license included in file
// "license.pdf". Please read LICENSE and README files before using it.
// The above files and the present reference are part of the software itself,
// and cannot be removed from it.
//
import inet.common.geometry.Geometry;
import inet.common.Units;
import simu5g.common.LteCommon;
import simu5g.stack.phy.packet.ModulationType;
namespace simu5g;
//
// 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;
}