21 #ifndef SATELLITE_TBTP_CONTAINER_H_
22 #define SATELLITE_TBTP_CONTAINER_H_
28 #include <ns3/mac48-address.h>
29 #include <ns3/object.h>
55 bool operator()(Ptr<SatTimeSlotConf> p1, Ptr<SatTimeSlotConf> p2)
57 return p1->GetStartTime() < p2->GetStartTime();
109 void Add(Time startTime, Ptr<SatTbtpMessage> tbtp);
127 typedef std::multimap<Time, Ptr<SatTbtpMessage>>
TbtpMap_t;
A container of received TBTPs.
Ptr< SatSuperframeSeq > m_superframeSeq
Superframe sequence.
Mac48Address m_address
Address of this UT.
static TypeId GetTypeId(void)
Get the type ID.
uint32_t m_rcvdTbtps
Number of received TBTPs.
virtual void DoDispose()
Dispose of this class instance.
bool HasScheduledTimeSlots()
Method of checking whether the UT has been scheduled time slots into the future.
uint32_t m_maxStoredTbtps
Maximum stored TBTPs in the container.
void Add(Time startTime, Ptr< SatTbtpMessage > tbtp)
Add a TBTP message to the container.
std::multimap< Time, Ptr< SatTbtpMessage > > TbtpMap_t
~SatTbtpContainer()
Destructor for SatTbtpContainer.
void RemovePastTbtps()
Function for removing the TBTPs which are in the past.
void SetMacAddress(Mac48Address address)
Set the MAC address of this node.
Time m_superFrameDuration
Superframe duration.
SatTbtpContainer()
Default constructor.
This class sorts time slots within TBTP into increasing order based on start time.
bool operator()(Ptr< SatTimeSlotConf > p1, Ptr< SatTimeSlotConf > p2)
Operator overload for sorting function.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.