Allocate random positions within a 3D box according to a set of three random variables (longitude, latitude, altitude). More...
#include "satellite-position-allocator.h"
Inheritance diagram for ns3::SatRandomBoxPositionAllocator:
Collaboration diagram for ns3::SatRandomBoxPositionAllocator:Public Member Functions | |
| SatRandomBoxPositionAllocator () | |
| Default constructor. More... | |
| virtual | ~SatRandomBoxPositionAllocator () |
| Destructor for SatRandomBoxPositionAllocator. More... | |
| virtual int64_t | AssignStreams (int64_t stream) |
| virtual GeoCoordinate | GetNextGeoPosition (uint32_t satId=0) const |
| Get next position. More... | |
| void | SetAltitude (Ptr< RandomVariableStream > altitude) |
| void | SetLatitude (Ptr< RandomVariableStream > latitude) |
| void | SetLongitude (Ptr< RandomVariableStream > longitude) |
Public Member Functions inherited from ns3::SatPositionAllocator | |
| SatPositionAllocator () | |
| Default constructor. More... | |
| virtual | ~SatPositionAllocator () |
| Destructor for SatPositionAllocator. More... | |
| 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 | |
| Ptr< RandomVariableStream > | m_altitude |
| Ptr< RandomVariableStream > | m_latitude |
| Ptr< RandomVariableStream > | m_longitude |
Allocate random positions within a 3D box according to a set of three random variables (longitude, latitude, altitude).
Definition at line 138 of file satellite-position-allocator.h.
| ns3::SatRandomBoxPositionAllocator::SatRandomBoxPositionAllocator | ( | ) |
Default constructor.
Definition at line 165 of file satellite-position-allocator.cc.
|
virtual |
Destructor for SatRandomBoxPositionAllocator.
Definition at line 169 of file satellite-position-allocator.cc.
|
virtual |
Reimplemented from ns3::SatPositionAllocator.
Definition at line 209 of file satellite-position-allocator.cc.
References m_altitude, m_latitude, and m_longitude.
|
virtual |
Get next position.
Implements ns3::SatPositionAllocator.
Definition at line 198 of file satellite-position-allocator.cc.
References m_altitude, m_latitude, and m_longitude.
|
static |
Get the type ID.
Definition at line 137 of file satellite-position-allocator.cc.
References m_altitude, m_latitude, and m_longitude.
| void ns3::SatRandomBoxPositionAllocator::SetAltitude | ( | Ptr< RandomVariableStream > | altitude | ) |
Definition at line 190 of file satellite-position-allocator.cc.
References m_altitude.
| void ns3::SatRandomBoxPositionAllocator::SetLatitude | ( | Ptr< RandomVariableStream > | latitude | ) |
Definition at line 182 of file satellite-position-allocator.cc.
References m_latitude.
| void ns3::SatRandomBoxPositionAllocator::SetLongitude | ( | Ptr< RandomVariableStream > | longitude | ) |
Definition at line 174 of file satellite-position-allocator.cc.
References m_longitude.
|
private |
Definition at line 171 of file satellite-position-allocator.h.
Referenced by AssignStreams(), GetNextGeoPosition(), GetTypeId(), and SetAltitude().
|
private |
Definition at line 169 of file satellite-position-allocator.h.
Referenced by AssignStreams(), GetNextGeoPosition(), GetTypeId(), and SetLatitude().
|
private |
Definition at line 170 of file satellite-position-allocator.h.
Referenced by AssignStreams(), GetNextGeoPosition(), GetTypeId(), and SetLongitude().