21 #ifndef SERVICE_FLOW_RECORD_H
22 #define SERVICE_FLOW_RECORD_H
25 #include "ns3/nstime.h"
26 #include "bs-uplink-scheduler.h"
27 #include "bs-net-device.h"
127 void SetRequestedBandwidth (uint32_t requestedBandwidth);
128 void UpdateRequestedBandwidth (uint32_t requestedBandwidth);
129 uint32_t GetRequestedBandwidth (
void);
131 void SetGrantedBandwidth (uint32_t grantedBandwidth);
132 void UpdateGrantedBandwidth (uint32_t grantedBandwidth);
133 uint32_t GetGrantedBandwidth (
void);
135 void SetGrantedBandwidthTemp (uint32_t grantedBandwidthTemp);
136 void UpdateGrantedBandwidthTemp (uint32_t grantedBandwidthTemp);
137 uint32_t GetGrantedBandwidthTemp (
void);
139 void SetBwSinceLastExpiry (uint32_t bwSinceLastExpiry);
140 void UpdateBwSinceLastExpiry (uint32_t bwSinceLastExpiry);
141 uint32_t GetBwSinceLastExpiry (
void);
143 void SetLastGrantTime (
Time grantTime);
144 Time GetLastGrantTime (
void)
const;
146 void SetBacklogged (uint32_t backlogged);
147 void IncreaseBacklogged (uint32_t backlogged);
148 uint32_t GetBacklogged (
void)
const;
150 void SetBackloggedTemp (uint32_t backloggedTemp);
151 void IncreaseBackloggedTemp (uint32_t backloggedTemp);
152 uint32_t GetBackloggedTemp (
void)
const;
155 uint32_t m_grantSize;
156 Time m_grantTimeStamp;
163 uint32_t m_bytesSent;
164 uint32_t m_bytesRcvd;
166 uint32_t m_requestedBandwidth;
167 uint32_t m_grantedBandwidth;
168 uint32_t m_grantedBandwidthTemp;
172 uint32_t m_bwSinceLastExpiry;
173 Time m_lastGrantTime;
174 int32_t m_backlogged;
175 int32_t m_backloggedTemp;
this class implements a structure to manage some parameters and statistics related to a service flow ...
uint32_t GetBytesRcvd(void) const
Time GetGrantTimeStamp(void) const
void SetGrantTimeStamp(Time grantTimeStamp)
Set the grant time stamp. Used for data alocation for ugs flows, and unicast poll (bw request) for no...
void SetGrantSize(uint32_t grantSize)
Set the grant size (only for UGS service flows)
void UpdatePktsRcvd(uint32_t pktsRcvd)
update the number of received packets by adding pktsRcvd
uint32_t GetPktsRcvd(void) const
void SetDlTimeStamp(Time dlTimeStamp)
Set the DlTimeStamp.
Time GetDlTimeStamp(void) const
uint32_t GetGrantSize(void) const
uint32_t GetBytesSent(void) const
void SetBytesRcvd(uint32_t bytesRcvd)
Set the number of received bytes.
void UpdateBytesSent(uint32_t bytesSent)
update the number of sent bytes by adding bytesSent
void SetPktsRcvd(uint32_t pktsRcvd)
Set the number of received packet.
void SetBytesSent(uint32_t bytesSent)
Set the number of sent bytes.
void UpdatePktsSent(uint32_t pktsSent)
update the number of sent packets by adding pktsSent
void SetPktsSent(uint32_t pktsSent)
set the number of sent packets in this service flow
uint32_t GetPktsSent(void) const
void UpdateBytesRcvd(uint32_t bytesRcvd)
update the number of received bytes by adding bytesRcvd