Zigbee RREQ transmission retries test case. More...
Inheritance diagram for ZigbeeApsDataTestCase:
Collaboration diagram for ZigbeeApsDataTestCase:Public Member Functions | |
| ZigbeeApsDataTestCase () | |
| ~ZigbeeApsDataTestCase () override | |
Public Member Functions inherited from ns3::TestCase | |
| TestCase (const TestCase &)=delete | |
| virtual | ~TestCase () |
| Destructor. | |
| std::string | GetName () const |
| TestCase & | operator= (const TestCase &)=delete |
Private Member Functions | |
| void | DoRun () override |
| Implementation to actually run this TestCase. | |
Static Private Member Functions | |
| static void | ApsDataIndication (ZigbeeApsDataTestCase *testcase, Ptr< ZigbeeStack > stack, ApsdeDataIndicationParams params, Ptr< Packet > asdu) |
| Callback for APSDE-DATA.indication This callback is called when a data packet is received by the APS layer. | |
| static void | NwkNetworkDiscoveryConfirm (ZigbeeApsDataTestCase *testcase, Ptr< ZigbeeStack > stack, NlmeNetworkDiscoveryConfirmParams params) |
| Callback for NLME-NETWORK-DISCOVERY.confirm This callback is called when a network discovery has been performed. | |
| static void | SendDataUcstDst (Ptr< ZigbeeStack > stackSrc, Ptr< ZigbeeStack > stackDst) |
| Send data to a unicast destination. | |
Private Attributes | |
| uint16_t | m_dstEndpoint |
| The destination endpoint. | |
Additional Inherited Members | |
Public Types inherited from ns3::TestCase | |
| enum class | Duration { 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. | |
| void | AddTestCase (TestCase *testCase, Duration duration=Duration::QUICK) |
| Add an individual child TestCase to this test suite. | |
| TestCase * | GetParent () const |
| Get the parent of this TestCase. | |
| bool | IsStatusFailure () const |
| Check if any tests failed. | |
| bool | IsStatusSuccess () const |
| Check if all tests passed. | |
| void | SetDataDir (std::string directory) |
| Set the data directory where reference trace files can be found. | |
| 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. | |
| bool | MustAssertOnFailure () const |
| Check if this run should assert on failure. | |
| bool | MustContinueOnFailure () const |
| Check if this run should continue on failure. | |
| std::string | CreateDataDirFilename (std::string filename) |
| Construct the full path to a file in the data directory. | |
| std::string | CreateTempDirFilename (std::string filename) |
| Construct the full path to a file in a temporary directory. | |
Zigbee RREQ transmission retries test case.
Definition at line 37 of file zigbee-aps-data-test.cc.
| ZigbeeApsDataTestCase::ZigbeeApsDataTestCase | ( | ) |
Definition at line 84 of file zigbee-aps-data-test.cc.
References ns3::TestCase::TestCase(), and m_dstEndpoint.
Referenced by ApsDataIndication(), and NwkNetworkDiscoveryConfirm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Definition at line 90 of file zigbee-aps-data-test.cc.
|
staticprivate |
Callback for APSDE-DATA.indication This callback is called when a data packet is received by the APS layer.
| testcase | The ZigbeeApsDataTestCase instance |
| stack | The Zigbee stack that received the data |
| params | The parameters of the APSDE-DATA.indication |
| asdu | The received packet |
Definition at line 95 of file zigbee-aps-data-test.cc.
References ZigbeeApsDataTestCase(), and m_dstEndpoint.
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprivatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 155 of file zigbee-aps-data-test.cc.
References ApsDataIndication(), ns3::zigbee::ChannelList::channelPageCount, ns3::zigbee::ChannelList::channelsField, ns3::CreateObject(), ns3::Simulator::Destroy(), ns3::NetDeviceContainer::Get(), ns3::zigbee::ZigbeeStackContainer::Get(), ns3::LrWpanHelper::Install(), ns3::ZigbeeHelper::Install(), ns3::zigbee::NlmeNetworkFormationRequestParams::m_beaconOrder, m_dstEndpoint, ns3::zigbee::NlmeNetworkDiscoveryRequestParams::m_scanChannelList, ns3::zigbee::NlmeNetworkFormationRequestParams::m_scanChannelList, ns3::zigbee::NlmeNetworkDiscoveryRequestParams::m_scanDuration, ns3::zigbee::NlmeNetworkFormationRequestParams::m_scanDuration, ns3::zigbee::NlmeNetworkFormationRequestParams::m_superFrameOrder, ns3::MakeBoundCallback(), ns3::MakeNullCallback(), ns3::zigbee::ZigbeeNwk::NlmeNetworkDiscoveryRequest(), ns3::zigbee::ZigbeeNwk::NlmeNetworkFormationRequest(), nodes, NS_TEST_EXPECT_MSG_EQ, NS_TEST_EXPECT_MSG_NE, NwkNetworkDiscoveryConfirm(), ns3::Simulator::Run(), ns3::Simulator::Schedule(), ns3::Simulator::ScheduleWithContext(), ns3::Seconds(), SendDataUcstDst(), ns3::RngSeedManager::SetRun(), and ns3::RngSeedManager::SetSeed().
Here is the call graph for this function:
|
staticprivate |
Callback for NLME-NETWORK-DISCOVERY.confirm This callback is called when a network discovery has been performed.
| testcase | The ZigbeeApsDataTestCase instance |
| stack | The Zigbee stack that received the confirmation |
| params | The parameters of the NLME-NETWORK-DISCOVERY.confirm |
Definition at line 104 of file zigbee-aps-data-test.cc.
References ZigbeeApsDataTestCase(), ns3::zigbee::ASSOCIATION, ns3::zigbee::ENDDEVICE, ns3::zigbee::CapabilityInformation::GetCapability(), ns3::zigbee::NlmeJoinRequestParams::m_capabilityInfo, ns3::zigbee::NlmeJoinRequestParams::m_extendedPanId, ns3::zigbee::NlmeJoinRequestParams::m_rejoinNetwork, ns3::zigbee::ZigbeeNwk::NlmeJoinRequest(), NS_ABORT_MSG, ns3::Simulator::ScheduleNow(), ns3::zigbee::CapabilityInformation::SetAllocateAddrOn(), ns3::zigbee::CapabilityInformation::SetDeviceType(), and ns3::zigbee::SUCCESS.
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Send data to a unicast destination.
This function sends a data packet from stackSrc to stackDst.
| stackSrc | The source Zigbee stack |
| stackDst | The destination Zigbee stack |
Definition at line 129 of file zigbee-aps-data-test.cc.
References ns3::zigbee::ZigbeeAps::ApsdeDataRequest(), ns3::Create(), ns3::zigbee::DST_ADDR16_DST_ENDPOINT_PRESENT, ns3::zigbee::ZigbeeApsTxOptions::GetTxOptions(), ns3::zigbee::ApsdeDataRequestParams::m_clusterId, ns3::zigbee::ApsdeDataRequestParams::m_dstAddr16, ns3::zigbee::ApsdeDataRequestParams::m_dstAddrMode, ns3::zigbee::ApsdeDataRequestParams::m_dstEndPoint, ns3::zigbee::ApsdeDataRequestParams::m_profileId, ns3::zigbee::ApsdeDataRequestParams::m_srcEndPoint, ns3::zigbee::ApsdeDataRequestParams::m_txOptions, ns3::zigbee::ApsdeDataRequestParams::m_useAlias, and ns3::Simulator::ScheduleNow().
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
The destination endpoint.
Definition at line 81 of file zigbee-aps-data-test.cc.
Referenced by ZigbeeApsDataTestCase(), ApsDataIndication(), and DoRun().