SatNcrTest1 Class Reference

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

+ Inheritance diagram for SatNcrTest1:
+ Collaboration diagram for SatNcrTest1:

Public Member Functions

 SatNcrTest1 ()
 
virtual ~SatNcrTest1 ()
 

Private Member Functions

virtual void DoRun (void)
 
void GetData (Ptr< CbrApplication > sender, Ptr< PacketSink > receiver)
 

Private Attributes

Ptr< SatHelperm_helper
 
std::vector< SatUtMacState::RcstState_tm_states
 
std::vector< int > m_totalReceived
 
std::vector< int > m_totalSent
 

Detailed Description

'NCR, test 1' test case implementation.

This case tests logon mechanism, and that no data is sent by UT before entering TDMA_SYNC state.

Expected result: GW receives nothing before logon GW always receives data after logon At the end, GW receives all data sent by UT

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

Constructor & Destructor Documentation

◆ SatNcrTest1()

SatNcrTest1::SatNcrTest1 ( )

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

◆ ~SatNcrTest1()

SatNcrTest1::~SatNcrTest1 ( )
virtual

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

Member Function Documentation

◆ DoRun()

void SatNcrTest1::DoRun ( void  )
privatevirtual

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

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

+ Here is the call graph for this function:

◆ GetData()

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

Definition at line 208 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_helper

Ptr<SatHelper> SatNcrTest1::m_helper
private

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

Referenced by DoRun(), and GetData().

◆ m_states

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

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

Referenced by DoRun(), and GetData().

◆ m_totalReceived

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

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

Referenced by DoRun(), and GetData().

◆ m_totalSent

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

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

Referenced by DoRun(), and GetData().


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