A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::DcfManagerTest Class Reference
+ Inheritance diagram for ns3::DcfManagerTest:

Public Member Functions

virtual void DoRun (void)
 Implementation to actually run this test case. More...
void NotifyAccessGranted (uint32_t i)
void NotifyChannelSensing (uint32_t i)
void NotifyChannelSwitching (uint32_t i)
void NotifyCollision (uint32_t i)
void NotifyInternalCollision (uint32_t i)

Private Types

typedef std::vector
< DcfStateTest * > 

Private Member Functions

void AddAccessRequest (uint64_t at, uint64_t txTime, uint64_t expectedGrantTime, uint32_t from)
void AddAccessRequestWithAckTimeout (uint64_t at, uint64_t txTime, uint64_t expectedGrantTime, uint32_t from)
void AddAccessRequestWithSuccessfullAck (uint64_t at, uint64_t txTime, uint64_t expectedGrantTime, uint32_t ackDelay, uint32_t from)
void AddAckTimeoutReset (uint64_t at)
void AddCcaBusyEvt (uint64_t at, uint64_t duration)
void AddDcfState (uint32_t aifsn)
void AddNavReset (uint64_t at, uint64_t duration)
void AddNavStart (uint64_t at, uint64_t duration)
void AddRxErrorEvt (uint64_t at, uint64_t duration)
void AddRxInsideSifsEvt (uint64_t at, uint64_t duration)
void AddRxOkEvt (uint64_t at, uint64_t duration)
void AddRxStartEvt (uint64_t at, uint64_t duration)
void AddSwitchingEvt (uint64_t at, uint64_t duration)
void AddTxEvt (uint64_t at, uint64_t duration)
void DoAccessRequest (uint64_t txTime, uint64_t expectedGrantTime, DcfStateTest *state)
void EndTest (void)
void ExpectCollision (uint64_t time, uint32_t from, uint32_t nSlots)
void ExpectInternalCollision (uint64_t time, uint32_t from, uint32_t nSlots)
void StartTest (uint64_t slotTime, uint64_t sifs, uint64_t eifsNoDifsNoSifs, uint32_t ackTimeoutValue=20)

Private Attributes

uint32_t m_ackTimeoutValue
DcfStates m_dcfStates

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)
void AddTestCase (TestCase *testCase) NS_DEPRECATED
 Add an individual test case to this test suite. More...
void AddTestCase (TestCase *testCase, enum TestDuration duration)
 Add an individual test case to this test suite. More...
std::string CreateDataDirFilename (std::string filename)
std::string CreateTempDirFilename (std::string filename)
bool GetErrorStatus (void) const NS_DEPRECATED
std::string GetName (void) const
bool IsStatusFailure (void) const
bool IsStatusSuccess (void) const
bool MustAssertOnFailure (void) const
bool MustContinueOnFailure (void) const
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
void SetDataDir (std::string directory)

Detailed Description

Definition at line 59 of file dcf-manager-test.cc.

Member Function Documentation

void ns3::DcfManagerTest::AddAccessRequestWithSuccessfullAck ( uint64_t  at,
uint64_t  txTime,
uint64_t  expectedGrantTime,
uint32_t  ackDelay,
uint32_t  from 
attime to schedule DoAccessRequest event
txTimeDoAccessRequest txTime
expectedGrantTimeDoAccessRequest expectedGrantTime
ackDelayis delay of the ack after txEnd
fromDoAccessRequest DcfStateTest

Definition at line 329 of file dcf-manager-test.cc.

References ns3::MicroSeconds(), ns3::Now(), NS_ASSERT, and ns3::Simulator::Schedule().

Referenced by DoRun().

void ns3::DcfManagerTest::DoRun ( void  )

Implementation to actually run this test case.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Definition at line 369 of file dcf-manager-test.cc.

References AddAccessRequestWithSuccessfullAck().

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