Loading...
Searching...
No Matches
ns3::SatCompositeSinrOutputTraceContainer Class Reference

Class for composite SINR output trace container. More...

#include "satellite-composite-sinr-output-trace-container.h"

Inheritance diagram for ns3::SatCompositeSinrOutputTraceContainer:
Collaboration diagram for ns3::SatCompositeSinrOutputTraceContainer:

Public Types

typedef std::map< key_t, Ptr< SatOutputFileStreamDoubleContainer > > container_t
 typedef for map of containers
typedef std::pair< Address, SatEnums::ChannelType_tkey_t
 typedef for map key

Public Member Functions

 SatCompositeSinrOutputTraceContainer ()
 Constructor.
 ~SatCompositeSinrOutputTraceContainer ()
 Destructor.
void AddToContainer (key_t key, std::vector< double > newItem)
 Add the vector containing the values to container matching the key.
void DoDispose ()
 Do needed dispose actions.
void EnableFigureOutput (bool enableFigureOutput)
 Function for enabling / disabling figure output.
void Reset ()
 Function for resetting the variables.
Public Member Functions inherited from ns3::SatBaseTraceContainer
 SatBaseTraceContainer ()
 Constructor.
virtual ~SatBaseTraceContainer ()
 Destructor.

Static Public Member Functions

static TypeId GetTypeId (void)
 NS-3 type id function.
Static Public Member Functions inherited from ns3::SatBaseTraceContainer
static TypeId GetTypeId (void)
 NS-3 type id function.

Private Member Functions

Ptr< SatOutputFileStreamDoubleContainerAddNode (std::pair< Address, SatEnums::ChannelType_t > key)
 Function for adding the node to the map.
Ptr< SatOutputFileStreamDoubleContainerFindNode (key_t key)
 Function for finding the container matching the key.
void WriteToFile ()
 Write the contents of a container matching to the key into a file.

Private Attributes

container_t m_container
 Map for containers.
bool m_enableFigureOutput
 Switch for figure output.

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.
static const uint32_t CSINR_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2
 Default number of columns for composite sinr traces.
static const uint32_t FADING_TRACE_DEFAULT_FADING_VALUE_INDEX = 1
 Default fading value index for fading traces.
static const uint32_t FADING_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2
 Default number of columns for fading traces.
static const uint32_t INTF_TRACE_DEFAULT_INTF_DENSITY_INDEX = 1
 Default interference density index for interference traces.
static const uint32_t INTF_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2
 Default number of columns for interference traces.
static const uint32_t POSITION_TRACE_DEFAULT_ALTITUDE_INDEX = 3
 Default altitude value index for positions traces.
static const uint32_t POSITION_TRACE_DEFAULT_LATITUDE_INDEX = 1
 Default latitude value index for positions traces.
static const uint32_t POSITION_TRACE_DEFAULT_LONGITUDE_INDEX = 2
 Default longitude value index for positions traces.
static const uint32_t POSITION_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 4
 Default number of columns for position traces.
static const uint32_t RX_CNO_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2
 Default Rx power density index for Rx power traces.
static const uint32_t RX_CNO_TRACE_DEFAULT_RX_POWER_DENSITY_INDEX = 1
 Default Rx power density index for Rx power traces.
static const uint32_t RX_POWER_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2
 Default Rx C/N0 index for C/N0 traces.
static const uint32_t RX_POWER_TRACE_DEFAULT_RX_POWER_DENSITY_INDEX = 1
 Default Rx C/N0 index for C/N0 traces.

Detailed Description

Class for composite SINR output trace container.

The class contains multiple fading output sample traces and provides an interface to them.

Definition at line 42 of file satellite-composite-sinr-output-trace-container.h.

Member Typedef Documentation

◆ container_t

◆ key_t

Constructor & Destructor Documentation

◆ SatCompositeSinrOutputTraceContainer()

ns3::SatCompositeSinrOutputTraceContainer::SatCompositeSinrOutputTraceContainer ( )

Constructor.

Definition at line 54 of file satellite-composite-sinr-output-trace-container.cc.

References m_enableFigureOutput.

◆ ~SatCompositeSinrOutputTraceContainer()

ns3::SatCompositeSinrOutputTraceContainer::~SatCompositeSinrOutputTraceContainer ( )

Destructor.

Definition at line 60 of file satellite-composite-sinr-output-trace-container.cc.

References Reset().

Here is the call graph for this function:

Member Function Documentation

◆ AddNode()

Ptr< SatOutputFileStreamDoubleContainer > ns3::SatCompositeSinrOutputTraceContainer::AddNode ( std::pair< Address, SatEnums::ChannelType_t > key)
private

Function for adding the node to the map.

Parameters
keykey
Returns
pointer to the added container

Definition at line 92 of file satellite-composite-sinr-output-trace-container.cc.

References ns3::SatBaseTraceContainer::CSINR_TRACE_DEFAULT_NUMBER_OF_COLUMNS, ns3::SatEnums::GetChannelTypeName(), ns3::SatEnvVariables::GetInstance(), and m_container.

Referenced by FindNode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddToContainer()

void ns3::SatCompositeSinrOutputTraceContainer::AddToContainer ( key_t key,
std::vector< double > newItem )

Add the vector containing the values to container matching the key.

Parameters
keykey
newItemvector of values

Definition at line 177 of file satellite-composite-sinr-output-trace-container.cc.

References ns3::SatBaseTraceContainer::CSINR_TRACE_DEFAULT_NUMBER_OF_COLUMNS, and FindNode().

Here is the call graph for this function:

◆ DoDispose()

void ns3::SatCompositeSinrOutputTraceContainer::DoDispose ( )

Do needed dispose actions.

Definition at line 68 of file satellite-composite-sinr-output-trace-container.cc.

References Reset().

Here is the call graph for this function:

◆ EnableFigureOutput()

void ns3::SatCompositeSinrOutputTraceContainer::EnableFigureOutput ( bool enableFigureOutput)
inline

Function for enabling / disabling figure output.

Parameters
enableFigureOutput

Definition at line 87 of file satellite-composite-sinr-output-trace-container.h.

References m_enableFigureOutput.

◆ FindNode()

Ptr< SatOutputFileStreamDoubleContainer > ns3::SatCompositeSinrOutputTraceContainer::FindNode ( key_t key)
private

Function for finding the container matching the key.

Parameters
keykey
Returns
matching container

Definition at line 140 of file satellite-composite-sinr-output-trace-container.cc.

References AddNode(), and m_container.

Referenced by AddToContainer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTypeId()

TypeId ns3::SatCompositeSinrOutputTraceContainer::GetTypeId ( void )
static

NS-3 type id function.

Returns
type id

Definition at line 46 of file satellite-composite-sinr-output-trace-container.cc.

References ns3::SatBaseTraceContainer::SatBaseTraceContainer().

Here is the call graph for this function:

◆ Reset()

void ns3::SatCompositeSinrOutputTraceContainer::Reset ( )
virtual

Function for resetting the variables.

Implements ns3::SatBaseTraceContainer.

Definition at line 78 of file satellite-composite-sinr-output-trace-container.cc.

References m_container, m_enableFigureOutput, and WriteToFile().

Referenced by ~SatCompositeSinrOutputTraceContainer(), and DoDispose().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteToFile()

void ns3::SatCompositeSinrOutputTraceContainer::WriteToFile ( )
private

Write the contents of a container matching to the key into a file.

Definition at line 155 of file satellite-composite-sinr-output-trace-container.cc.

References ns3::SatOutputFileStreamDoubleContainer::DECIBEL, m_container, and m_enableFigureOutput.

Referenced by Reset().

Here is the caller graph for this function:

Member Data Documentation

◆ m_container

container_t ns3::SatCompositeSinrOutputTraceContainer::m_container
private

Map for containers.

Definition at line 121 of file satellite-composite-sinr-output-trace-container.h.

Referenced by AddNode(), FindNode(), Reset(), and WriteToFile().

◆ m_enableFigureOutput

bool ns3::SatCompositeSinrOutputTraceContainer::m_enableFigureOutput
private

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