SatNcrTest2 Class Reference

'NCR, test 2' test case implementation. More...

+ Inheritance diagram for SatNcrTest2:
+ Collaboration diagram for SatNcrTest2:

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< SatChannelm_channel
 
Ptr< SatHelperm_helper
 
std::vector< SatUtMacState::RcstState_tm_states
 
std::vector< int > m_totalReceived
 
std::vector< int > m_totalSent
 

Detailed Description

'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 231 of file satellite-ncr-test.cc.

Constructor & Destructor Documentation

◆ SatNcrTest2()

SatNcrTest2::SatNcrTest2 ( )

Definition at line 251 of file satellite-ncr-test.cc.

◆ ~SatNcrTest2()

SatNcrTest2::~SatNcrTest2 ( )
virtual

Definition at line 258 of file satellite-ncr-test.cc.

Member Function Documentation

◆ ChangeTxStatus()

void SatNcrTest2::ChangeTxStatus ( bool  enable)
private

Definition at line 426 of file satellite-ncr-test.cc.

References m_helper.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ DoRun()

void SatNcrTest2::DoRun ( void  )
privatevirtual

Definition at line 266 of file satellite-ncr-test.cc.

References ChangeTxStatus(), GetData(), m_helper, m_states, and m_totalReceived.

+ Here is the call graph for this function:

◆ GetData()

void SatNcrTest2::GetData ( Ptr< CbrApplication >  sender,
Ptr< PacketSink >  receiver 
)
private

Definition at line 413 of file satellite-ncr-test.cc.

References m_helper, m_states, m_totalReceived, and m_totalSent.

Referenced by DoRun().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_channel

Ptr<SatChannel> SatNcrTest2::m_channel
private

Definition at line 247 of file satellite-ncr-test.cc.

◆ m_helper

Ptr<SatHelper> SatNcrTest2::m_helper
private

Definition at line 242 of file satellite-ncr-test.cc.

Referenced by ChangeTxStatus(), DoRun(), and GetData().

◆ m_states

std::vector<SatUtMacState::RcstState_t> SatNcrTest2::m_states
private

Definition at line 246 of file satellite-ncr-test.cc.

Referenced by DoRun(), and GetData().

◆ m_totalReceived

std::vector<int> SatNcrTest2::m_totalReceived
private

Definition at line 245 of file satellite-ncr-test.cc.

Referenced by DoRun(), and GetData().

◆ m_totalSent

std::vector<int> SatNcrTest2::m_totalSent
private

Definition at line 244 of file satellite-ncr-test.cc.

Referenced by GetData().


The documentation for this class was generated from the following file: