Allocate positions from a deterministic list specified by the user. More...
#include "satellite-position-allocator.h"
Public Member Functions | |
SatListPositionAllocator () | |
Default constructor. More... | |
void | Add (GeoCoordinate coordinate) |
virtual uint32_t | GetCount () |
virtual GeoCoordinate | GetNextGeoPosition (uint32_t satId=0) const |
Get next position. More... | |
virtual void | SetToBegin () |
Public Member Functions inherited from ns3::SatPositionAllocator | |
SatPositionAllocator () | |
Default constructor. More... | |
virtual | ~SatPositionAllocator () |
Destructor for SatPositionAllocator. More... | |
virtual int64_t | AssignStreams (int64_t stream) |
virtual Vector | GetNext (void) const |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::SatPositionAllocator | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Attributes | |
std::vector< GeoCoordinate >::const_iterator | m_current |
std::vector< GeoCoordinate > | m_positions |
Allocate positions from a deterministic list specified by the user.
The first call to SatListPositionAllocator::GetNext will return the first element of the list, the second call, the second element, and so on.
Definition at line 91 of file satellite-position-allocator.h.
ns3::SatListPositionAllocator::SatListPositionAllocator | ( | ) |
Default constructor.
Definition at line 105 of file satellite-position-allocator.cc.
void ns3::SatListPositionAllocator::Add | ( | GeoCoordinate | coordinate | ) |
coordinate | the position to append at the end of the list of positions to return from GetNext. |
Definition at line 110 of file satellite-position-allocator.cc.
References ns3::GeoCoordinate::GetAltitude(), ns3::GeoCoordinate::GetLatitude(), ns3::GeoCoordinate::GetLongitude(), m_current, and m_positions.
|
inlinevirtual |
Definition at line 123 of file satellite-position-allocator.h.
References m_positions.
|
virtual |
Get next position.
satId | ID of satellite |
Implements ns3::SatPositionAllocator.
Definition at line 120 of file satellite-position-allocator.cc.
References m_current, and m_positions.
|
static |
Get the type ID.
Definition at line 97 of file satellite-position-allocator.cc.
|
inlinevirtual |
Definition at line 118 of file satellite-position-allocator.h.
References m_current, and m_positions.
|
mutableprivate |
Definition at line 130 of file satellite-position-allocator.h.
Referenced by Add(), GetNextGeoPosition(), and SetToBegin().
|
private |
Definition at line 129 of file satellite-position-allocator.h.
Referenced by Add(), GetCount(), GetNextGeoPosition(), and SetToBegin().