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 * > | DcfStates |
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 |
DcfManager * | m_dcfManager |
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) |
Definition at line 59 of file dcf-manager-test.cc.
|
private |
at | time to schedule DoAccessRequest event |
txTime | DoAccessRequest txTime |
expectedGrantTime | DoAccessRequest expectedGrantTime |
ackDelay | is delay of the ack after txEnd |
from | DoAccessRequest 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().
|
virtual |
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().