Test case to unit test the UT request manager. More...
Public Member Functions | |
| SatBaseTestCase () | |
| virtual | ~SatBaseTestCase () |
| bool | ControlMsgTxPossible () const |
| Check whether a control message transmission is possible. | |
| SatQueue::QueueStats_t | GetQueueStatistics (bool reset) |
| Get queue statistics for request manager. | |
| bool | SendControlMsg (Ptr< SatControlMessage > msg, const Address &dest) |
| Send control message called with a callback from request manager. | |
Private Member Functions | |
| virtual void | DoRun (void) |
Private Attributes | |
| std::vector< Ptr< SatCrMessage > > | m_rcvdCapacityRequests |
| Received CRs. | |
Test case to unit test the UT request manager.
Definition at line 48 of file satellite-request-manager-test.cc.
| SatBaseTestCase::SatBaseTestCase | ( | ) |
Definition at line 86 of file satellite-request-manager-test.cc.
|
virtual |
Definition at line 91 of file satellite-request-manager-test.cc.
| bool SatBaseTestCase::ControlMsgTxPossible | ( | ) | const |
Check whether a control message transmission is possible.
Definition at line 196 of file satellite-request-manager-test.cc.
Referenced by DoRun().
|
privatevirtual |
Definition at line 96 of file satellite-request-manager-test.cc.
References ControlMsgTxPossible(), ns3::SatEnvVariables::GetInstance(), GetQueueStatistics(), m_rcvdCapacityRequests, ns3::SatEnums::NT_UT, and SendControlMsg().
| SatQueue::QueueStats_t SatBaseTestCase::GetQueueStatistics | ( | bool | reset | ) |
Get queue statistics for request manager.
This comes really from the SatQueue, but here we send some known information as KPIs for RM.
| reset | Flag to reset queue statistics (not used here) |
Definition at line 182 of file satellite-request-manager-test.cc.
References ns3::SatQueue::QueueStats_t::m_incomingRateKbps, ns3::SatQueue::QueueStats_t::m_outgoingRateKbps, ns3::SatQueue::QueueStats_t::m_queueSizeBytes, ns3::SatQueue::QueueStats_t::m_volumeInBytes, and ns3::SatQueue::QueueStats_t::m_volumeOutBytes.
Referenced by DoRun().
| bool SatBaseTestCase::SendControlMsg | ( | Ptr< SatControlMessage > | msg, |
| const Address & | dest ) |
Send control message called with a callback from request manager.
In this test the method is used to analyze the sent requests from RM.
| msg | Control msg (CR, or CNo report) |
| dest | Destination MAC address |
Definition at line 163 of file satellite-request-manager-test.cc.
References m_rcvdCapacityRequests, and ns3::SatControlMsgTag::SAT_CR_CTRL_MSG.
Referenced by DoRun().
|
private |
Received CRs.
Definition at line 83 of file satellite-request-manager-test.cc.
Referenced by DoRun(), and SendControlMsg().