SatMobilityList2TestCase Class Reference

Test case to unit test satellite mobility's position setting from list position allocator. More...

+ Inheritance diagram for SatMobilityList2TestCase:
+ Collaboration diagram for SatMobilityList2TestCase:

Public Member Functions

 SatMobilityList2TestCase ()
 
virtual ~SatMobilityList2TestCase ()
 

Private Member Functions

virtual void DoRun (void)
 

Detailed Description

Test case to unit test satellite mobility's position setting from list position allocator.

Conversion expected to happen. (Constant position mobility model used).

This case tests that SatConstantPositionMobilityModel object can be created successfully and position allocation can be done with list allocator when they operate using geodetic coordinates.

  1. Configure SatConstantPositionMobilityModel and SatListPositionAllocator to use Cartesian coordinates.
  2. Create SatListPositionAllocator object and set positions to it.
  3. Create SatConstantPositionMobilityModel object with SatListPositionAllocator with MobilityHelper.
  4. Install nodes to mobility with helper.
  5. Get position of nodes by mobility model.

Expected result: Positions should be same as set to allocator. But due to needed conversion they are not necessarily exactly same, so some tolerance is accepted.

Notes: SatMobilityModel and SatListPositionAllocator (SatPositionAllocator) attributes AsGeoCoordinates define, if mobility and allocator operate using geodetic coordinates or using Cartesian Coordinates. By default geodetic coordinates is used.

Definition at line 260 of file satellite-mobility-test.cc.

Constructor & Destructor Documentation

◆ SatMobilityList2TestCase()

SatMobilityList2TestCase::SatMobilityList2TestCase ( )

Definition at line 270 of file satellite-mobility-test.cc.

◆ ~SatMobilityList2TestCase()

SatMobilityList2TestCase::~SatMobilityList2TestCase ( )
virtual

Definition at line 275 of file satellite-mobility-test.cc.

Member Function Documentation

◆ DoRun()

void SatMobilityList2TestCase::DoRun ( void  )
privatevirtual

Definition at line 280 of file satellite-mobility-test.cc.


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