21#ifndef SATELLITE_BBFRAME_H_
22#define SATELLITE_BBFRAME_H_
27#include "ns3/nstime.h"
28#include "ns3/packet.h"
29#include "ns3/simple-ref-count.h"
30#include "ns3/traced-callback.h"
70 Ptr<SatBbFrameConf> conf);
139 TracedCallback<Ptr<SatBbFrame>, Ptr<SatBbFrame>> mergeTraceCb);
147 Time
Shrink(Ptr<SatBbFrameConf> conf);
154 Time
Extend(Ptr<SatBbFrameConf> conf);
double GetOccupancy() const
Get the occupancy of the of the BB Frame.
uint32_t m_freeSpaceInBytes
SatEnums::SatModcod_t m_modCod
uint32_t AddPayload(Ptr< Packet > packet)
Add payload (packet) to transmit buffer of this BB Frame info.
uint32_t m_maxSpaceInBytes
double GetOccupancyIfMerged(Ptr< SatBbFrame > mergedFrame) const
Checks occupancy of the frame if given frame would been merged with this frame.
double GetSpectralEfficiency(double carrierBandwidthInHz) const
Get spectra efficiency of the frame.
Time Extend(Ptr< SatBbFrameConf > conf)
Extent BB frame to the longest type.
void SetSliceId(uint8_t sliceId)
Set the slice ID of the BBFrame.
const SatBbFramePayload_t & GetPayload()
Get the data in the BB Frame info as container of the packet pointers.
void(* BbFrameMergeCallback)(Ptr< SatBbFrame > to, Ptr< SatBbFrame > from)
Callback signature for merging of two instances of SatBbFrame.
uint32_t GetFrameHeaderSize() const
Get header size of the frame.
uint8_t GetSliceId() const
Get the slice ID of the BBFrame.
uint32_t m_headerSizeInBytes
SatBbFramePayload_t m_framePayload
bool MergeWithFrame(Ptr< SatBbFrame > mergedFrame, TracedCallback< Ptr< SatBbFrame >, Ptr< SatBbFrame > > mergeTraceCb)
Merge given frame with this frame.
void(* BbFrameCallback)(Ptr< SatBbFrame > bbFrame)
Callback signature for Ptr<SatBbFrame>.
SatEnums::SatBbFrameType_t GetFrameType() const
Get type of the frame.
SatBbFrame()
Default constructor.
uint32_t GetSpaceLeftInBytes() const
Get space left in BB frame transmit buffer in bytes.
Time Shrink(Ptr< SatBbFrameConf > conf)
Shrink BB frame to the shortest type possible according to current load in the frame.
uint32_t GetSpaceUsedInBytes() const
Get space used in BB frame transmit buffer in bytes.
Time GetDuration() const
Get duration of the frame transmission.
SatEnums::SatModcod_t GetModcod() const
Get type of the frame.
uint32_t GetMaxSpaceInBytes() const
Get the maximum size of the BB Frame transmit buffer in bytes.
SatEnums::SatBbFrameType_t m_frameType
std::vector< Ptr< Packet > > SatBbFramePayload_t
Define type SatBbFramePayload_t.
virtual ~SatBbFrame()
Destructor fro BB frame.
SatBbFrameType_t
BB frame type used in DVB-S2 FWD link.
SatModcod_t
Modulation scheme and coding rate for DVB-S2.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.