Class for Rx power input trace container. More...
#include "satellite-position-input-trace-container.h"
Public Types | |
typedef std::map< std::string, Ptr< SatInputFileStreamTimeDoubleContainer > > | container_t |
typedef for map of containers More... | |
Public Member Functions | |
SatPositionInputTraceContainer () | |
Constructor. More... | |
~SatPositionInputTraceContainer () | |
Destructor. More... | |
void | DoDispose () |
Do needed dispose actions. More... | |
TypeId | GetInstanceTypeId (void) const |
NS-3 instance type id function. More... | |
GeoCoordinate | GetPosition (const std::string &key, GeoCoordinate::ReferenceEllipsoid_t refEllipsoid) |
Function for getting the Rx power density. More... | |
void | Reset () |
Function for resetting the variables. More... | |
Public Member Functions inherited from ns3::SatBaseTraceContainer | |
SatBaseTraceContainer () | |
Constructor. More... | |
virtual | ~SatBaseTraceContainer () |
Destructor. More... | |
TypeId | GetInstanceTypeId (void) const |
NS-3 instance type id function. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
NS-3 type id function. More... | |
Static Public Member Functions inherited from ns3::SatBaseTraceContainer | |
static TypeId | GetTypeId (void) |
NS-3 type id function. More... | |
Private Member Functions | |
Ptr< SatInputFileStreamTimeDoubleContainer > | AddNode (const std::string &key) |
Function for adding the node to the map. More... | |
Ptr< SatInputFileStreamTimeDoubleContainer > | FindNode (const std::string &key) |
Function for finding the container matching the key. More... | |
Private Attributes | |
container_t | m_container |
Map for containers. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from ns3::SatBaseTraceContainer | |
static const uint32_t | CSINR_TRACE_DEFAULT_FADING_VALUE_INDEX = 1 |
Default sinr value index for composite sinr traces. More... | |
static const uint32_t | CSINR_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2 |
Default number of columns for composite sinr traces. More... | |
static const uint32_t | FADING_TRACE_DEFAULT_FADING_VALUE_INDEX = 1 |
Default fading value index for fading traces. More... | |
static const uint32_t | FADING_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2 |
Default number of columns for fading traces. More... | |
static const uint32_t | INTF_TRACE_DEFAULT_INTF_DENSITY_INDEX = 1 |
Default interference density index for interference traces. More... | |
static const uint32_t | INTF_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2 |
Default number of columns for interference traces. More... | |
static const uint32_t | POSITION_TRACE_DEFAULT_ALTITUDE_INDEX = 3 |
Default altitude value index for positions traces. More... | |
static const uint32_t | POSITION_TRACE_DEFAULT_LATITUDE_INDEX = 1 |
Default latitude value index for positions traces. More... | |
static const uint32_t | POSITION_TRACE_DEFAULT_LONGITUDE_INDEX = 2 |
Default longitude value index for positions traces. More... | |
static const uint32_t | POSITION_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 4 |
Default number of columns for position traces. More... | |
static const uint32_t | RX_CNO_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2 |
Default Rx power density index for Rx power traces. More... | |
static const uint32_t | RX_CNO_TRACE_DEFAULT_RX_POWER_DENSITY_INDEX = 1 |
Default Rx power density index for Rx power traces. More... | |
static const uint32_t | RX_POWER_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2 |
Default Rx C/N0 index for C/N0 traces. More... | |
static const uint32_t | RX_POWER_TRACE_DEFAULT_RX_POWER_DENSITY_INDEX = 1 |
Default Rx C/N0 index for C/N0 traces. More... | |
Class for Rx power input trace container.
The class contains multiple Rx power input sample traces and provides an interface to them.
Definition at line 42 of file satellite-position-input-trace-container.h.
typedef std::map<std::string, Ptr<SatInputFileStreamTimeDoubleContainer> > ns3::SatPositionInputTraceContainer::container_t |
typedef for map of containers
Definition at line 48 of file satellite-position-input-trace-container.h.
ns3::SatPositionInputTraceContainer::SatPositionInputTraceContainer | ( | ) |
Constructor.
Definition at line 57 of file satellite-position-input-trace-container.cc.
ns3::SatPositionInputTraceContainer::~SatPositionInputTraceContainer | ( | ) |
Destructor.
Definition at line 62 of file satellite-position-input-trace-container.cc.
References Reset().
|
private |
Function for adding the node to the map.
key | filename to read positions from |
Definition at line 91 of file satellite-position-input-trace-container.cc.
References m_container, and ns3::SatBaseTraceContainer::POSITION_TRACE_DEFAULT_NUMBER_OF_COLUMNS.
Referenced by FindNode().
void ns3::SatPositionInputTraceContainer::DoDispose | ( | void | ) |
Do needed dispose actions.
Definition at line 70 of file satellite-position-input-trace-container.cc.
References Reset().
|
private |
Function for finding the container matching the key.
key | key |
Definition at line 111 of file satellite-position-input-trace-container.cc.
References AddNode(), and m_container.
Referenced by GetPosition().
TypeId ns3::SatPositionInputTraceContainer::GetInstanceTypeId | ( | void | ) | const |
NS-3 instance type id function.
Definition at line 50 of file satellite-position-input-trace-container.cc.
References GetTypeId().
GeoCoordinate ns3::SatPositionInputTraceContainer::GetPosition | ( | const std::string & | key, |
GeoCoordinate::ReferenceEllipsoid_t | refEllipsoid | ||
) |
Function for getting the Rx power density.
key | key |
Definition at line 126 of file satellite-position-input-trace-container.cc.
References FindNode(), ns3::SatBaseTraceContainer::POSITION_TRACE_DEFAULT_ALTITUDE_INDEX, ns3::SatBaseTraceContainer::POSITION_TRACE_DEFAULT_LATITUDE_INDEX, and ns3::SatBaseTraceContainer::POSITION_TRACE_DEFAULT_LONGITUDE_INDEX.
|
static |
NS-3 type id function.
Definition at line 41 of file satellite-position-input-trace-container.cc.
Referenced by GetInstanceTypeId().
|
virtual |
Function for resetting the variables.
Implements ns3::SatBaseTraceContainer.
Definition at line 80 of file satellite-position-input-trace-container.cc.
References m_container.
Referenced by ~SatPositionInputTraceContainer(), and DoDispose().
|
private |
Map for containers.
Definition at line 108 of file satellite-position-input-trace-container.h.
Referenced by AddNode(), FindNode(), and Reset().