'NCR, test 2' test case implementation. More...
Public Member Functions | |
| SatNcrTest2 () | |
| virtual | ~SatNcrTest2 () |
Private Member Functions | |
| void | ChangeTxStatus (bool enable) |
| virtual void | DoRun (void) |
| void | GetData (Ptr< CbrApplication > sender, Ptr< PacketSink > receiver) |
Private Attributes | |
| Ptr< SatChannel > | m_channel |
| Ptr< SatHelper > | m_helper |
| std::vector< SatUtMacState::RcstState_t > | m_states |
| std::vector< int > | m_totalReceived |
| std::vector< int > | m_totalSent |
'NCR, test 2' test case implementation.
This case tests ncr recovery mechanism.
Expected result: UT switch to NCR_RECOVERY if NCR reception is stopped UT switch back to READY_FOR_TDMA_SYNC if NCR reception come back before timeout GW receives data only when UT in TDMA_SYNC state
Definition at line 235 of file satellite-ncr-test.cc.
| SatNcrTest2::SatNcrTest2 | ( | ) |
Definition at line 255 of file satellite-ncr-test.cc.
|
virtual |
Definition at line 262 of file satellite-ncr-test.cc.
|
private |
Definition at line 432 of file satellite-ncr-test.cc.
Referenced by DoRun().
|
privatevirtual |
Definition at line 270 of file satellite-ncr-test.cc.
References ChangeTxStatus(), ns3::SatPhyRxCarrierConf::EM_NONE, GetData(), ns3::SatEnvVariables::GetInstance(), ns3::SatPhyRxCarrierConf::IF_PER_PACKET, m_helper, m_states, m_totalReceived, ns3::SatUtMacState::NCR_RECOVERY, ns3::SatUtMacState::OFF_STANDBY, ns3::SatPhyRxCarrierConf::RA_COLLISION_CHECK_AGAINST_SINR, ns3::SatEnums::RA_MODEL_SLOTTED_ALOHA, ns3::SatUtMacState::READY_FOR_LOGON, ns3::SatHelper::SIMPLE, ns3::SatSuperframeConf::SUPER_FRAME_CONFIG_0, and ns3::SatUtMacState::TDMA_SYNC.
|
private |
Definition at line 418 of file satellite-ncr-test.cc.
References GetData(), m_states, m_totalReceived, and m_totalSent.
Referenced by DoRun(), and GetData().
|
private |
Definition at line 251 of file satellite-ncr-test.cc.
|
private |
Definition at line 246 of file satellite-ncr-test.cc.
Referenced by DoRun().
|
private |
Definition at line 250 of file satellite-ncr-test.cc.
|
private |
Definition at line 249 of file satellite-ncr-test.cc.
|
private |
Definition at line 248 of file satellite-ncr-test.cc.
Referenced by GetData().