A Discrete-Event Network Simulator
API
ChannelRoutingTestCase Class Reference

route packets or frames in different approaches see 1609.4-2010 chapter 5.3.4 More...

+ Inheritance diagram for ChannelRoutingTestCase:
+ Collaboration diagram for ChannelRoutingTestCase:

Public Member Functions

 ChannelRoutingTestCase (void)
 
virtual ~ChannelRoutingTestCase (void)
 
void SendIp (bool shouldSucceed, bool ipv6)
 
void SendWsa (bool shouldSucceed, const VsaInfo &vsaInfo)
 
void SendWsmp (bool shouldSucceed, const TxInfo &txInfo)
 
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName (void) const
 

Private Member Functions

virtual void DoRun (void)
 Implementation to actually run this TestCase. More...
 
bool Receive (Ptr< NetDevice > dev, Ptr< const Packet > pkt, uint16_t mode, const Address &sender)
 
bool ReceiveVsa (Ptr< const Packet >, const Address &, uint32_t, uint32_t)
 

Private Attributes

Ptr< WaveNetDevicem_sender
 

Additional Inherited Members

- Public Types inherited from ns3::TestCase
enum  TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 
- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 Constructor. More...
 
void AddTestCase (TestCase *testCase, enum TestDuration duration)
 Add an individual child TestCase to this test suite. More...
 
TestCaseGetParent () const
 Get the parent of this TestCsse. More...
 
bool IsStatusFailure (void) const
 Check if any tests failed. More...
 
bool IsStatusSuccess (void) const
 Check if all tests passed. More...
 
void SetDataDir (std::string directory)
 Set the data directory where reference trace files can be found. More...
 
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
 Log the failure of this TestCase. More...
 
bool MustAssertOnFailure (void) const
 Check if this run should assert on failure. More...
 
bool MustContinueOnFailure (void) const
 Check if this run should continue on failure. More...
 
std::string CreateDataDirFilename (std::string filename)
 Construct the full path to a file in the data directory. More...
 
std::string CreateTempDirFilename (std::string filename)
 Construct the full path to a file in a temporary directory. More...
 

Detailed Description

route packets or frames in different approaches see 1609.4-2010 chapter 5.3.4

Definition at line 261 of file mac-extension-test-suite.cc.

Constructor & Destructor Documentation

ChannelRoutingTestCase::ChannelRoutingTestCase ( void  )

Definition at line 285 of file mac-extension-test-suite.cc.

ChannelRoutingTestCase::~ChannelRoutingTestCase ( void  )
virtual

Definition at line 290 of file mac-extension-test-suite.cc.

Member Function Documentation

void ChannelRoutingTestCase::DoRun ( void  )
privatevirtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Definition at line 323 of file mac-extension-test-suite.cc.

References CCH, ns3::VsaInfo::channelNumber, TestCaseHelper::CreatWaveDevice(), first::devices, EXTENDED_ALTERNATING, ns3::NetDeviceContainer::Get(), m_sender, SCH1, SCH2, SCH3, SCH4, SCH5, SCH6, ns3::Seconds(), SendIp(), SendWsa(), SendWsmp(), and ns3::VSA_TRANSMIT_IN_BOTHI.

+ Here is the call graph for this function:

bool ChannelRoutingTestCase::Receive ( Ptr< NetDevice dev,
Ptr< const Packet pkt,
uint16_t  mode,
const Address sender 
)
private
bool ChannelRoutingTestCase::ReceiveVsa ( Ptr< const Packet ,
const Address ,
uint32_t  ,
uint32_t   
)
private
void ChannelRoutingTestCase::SendIp ( bool  shouldSucceed,
bool  ipv6 
)

Definition at line 304 of file mac-extension-test-suite.cc.

References m_sender, NS_TEST_EXPECT_MSG_EQ, and ns3::WaveNetDevice::Send().

Referenced by DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ChannelRoutingTestCase::SendWsa ( bool  shouldSucceed,
const VsaInfo vsaInfo 
)

Definition at line 316 of file mac-extension-test-suite.cc.

References m_sender, NS_TEST_EXPECT_MSG_EQ, and ns3::WaveNetDevice::StartVsa().

Referenced by DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ChannelRoutingTestCase::SendWsmp ( bool  shouldSucceed,
const TxInfo txInfo 
)

Definition at line 295 of file mac-extension-test-suite.cc.

References m_sender, NS_TEST_EXPECT_MSG_EQ, and ns3::WaveNetDevice::SendX().

Referenced by DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

Ptr<WaveNetDevice> ChannelRoutingTestCase::m_sender
private

Definition at line 282 of file mac-extension-test-suite.cc.

Referenced by DoRun(), SendIp(), SendWsa(), and SendWsmp().


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