8#include "ns3/boolean.h"
10#include "ns3/double.h"
11#include "ns3/rng-seed-manager.h"
12#include "ns3/simulator.h"
13#include "ns3/steady-state-random-waypoint-mobility-model.h"
29 :
TestCase(
"Check steady-state rwp mobility model velocity and position distributions")
41 void DoRun()
override;
59 double totalTime = 1000;
102 std::sqrt(std::pow(
model->GetVelocity().x, 2) + std::pow(
model->GetVelocity().y, 2));
123 std::sqrt(std::pow(
model->GetVelocity().x, 2) + std::pow(
model->GetVelocity().y, 2));
Steady State Random Waypoint Test.
~SteadyStateRandomWaypointTest() override
std::vector< Ptr< MobilityModel > > mobilityStack
modility model
void DoRun() override
Implementation to actually run this TestCase.
SteadyStateRandomWaypointTest()
void DistribCompare()
Distribution compare function.
void DoTeardown() override
Implementation to do any local setup required for this TestCase.
This class can be used to hold variables of floating point type such as 'double' or 'float'.
Keep track of the current position and velocity of an object.
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model.
Instantiate subclasses of ns3::Object.
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory.
void Initialize()
Invoke DoInitialize on all Objects aggregated to this one.
Smart pointer class similar to boost::intrusive_ptr.
static void SetSeed(uint32_t seed)
Set the seed.
static EventId Schedule(const Time &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
static void Destroy()
Execute the events scheduled with ScheduleDestroy().
static void Run()
Run the simulation.
static void Stop()
Tell the Simulator the calling event should be the last one executed.
void AddTestCase(TestCase *testCase, Duration duration=Duration::QUICK)
Add an individual child TestCase to this test suite.
static constexpr auto UNIT
SteadyStateRandomWaypointTestSuite g_steadyStateRandomWaypointTestSuite
the test suite
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
#define NS_TEST_EXPECT_MSG_EQ_TOL(actual, limit, tol, msg)
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report if ...
Time Seconds(double value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Steady State Random Waypoint Test Suite.
SteadyStateRandomWaypointTestSuite()