A Discrete-Event Network Simulator
API
ns3::MatrixBasedChannelModel::ChannelMatrix Struct Reference

Data structure that stores a channel realization. More...

#include "matrix-based-channel-model.h"

+ Inheritance diagram for ns3::MatrixBasedChannelModel::ChannelMatrix:
+ Collaboration diagram for ns3::MatrixBasedChannelModel::ChannelMatrix:

Public Member Functions

virtual ~ChannelMatrix ()=default
 Destructor for ChannelMatrix. More...
 
bool IsReverse (const uint32_t aId, const uint32_t bId) const
 Returns true if the ChannelMatrix object was generated considering node b as transmitter and node a as receiver. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< ChannelMatrix >
 SimpleRefCount ()
 Default constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 

Public Attributes

Double2DVector m_angle
 cluster angle angle[direction][n], where direction = 0(AOA), 1(ZOA), 2(AOD), 3(ZOD) in degree. More...
 
Complex3DVector m_channel
 channel matrix H[u][s][n]. More...
 
DoubleVector m_delay
 cluster delay in nanoseconds. More...
 
Time m_generatedTime
 generation time More...
 
std::pair< uint32_t, uint32_t > m_nodeIds
 the first element is the s-node ID (the transmitter when the channel was generated), the second element is the u-node ID (the receiver when the channel was generated) More...
 

Detailed Description

Data structure that stores a channel realization.

Definition at line 61 of file matrix-based-channel-model.h.

Constructor & Destructor Documentation

◆ ~ChannelMatrix()

virtual ns3::MatrixBasedChannelModel::ChannelMatrix::~ChannelMatrix ( )
virtualdefault

Destructor for ChannelMatrix.

Member Function Documentation

◆ IsReverse()

bool ns3::MatrixBasedChannelModel::ChannelMatrix::IsReverse ( const uint32_t  aId,
const uint32_t  bId 
) const
inline

Returns true if the ChannelMatrix object was generated considering node b as transmitter and node a as receiver.

Parameters
aIdid of the a node
bIdid of the b node
Returns
true if b is the rx and a is the tx, false otherwise

Definition at line 81 of file matrix-based-channel-model.h.

References m_nodeIds, and NS_ASSERT_MSG.

Member Data Documentation

◆ m_angle

Double2DVector ns3::MatrixBasedChannelModel::ChannelMatrix::m_angle

cluster angle angle[direction][n], where direction = 0(AOA), 1(ZOA), 2(AOD), 3(ZOD) in degree.

Definition at line 65 of file matrix-based-channel-model.h.

Referenced by ns3::ThreeGppChannelModel::GetNewChannel().

◆ m_channel

Complex3DVector ns3::MatrixBasedChannelModel::ChannelMatrix::m_channel

◆ m_delay

DoubleVector ns3::MatrixBasedChannelModel::ChannelMatrix::m_delay

cluster delay in nanoseconds.

Definition at line 64 of file matrix-based-channel-model.h.

Referenced by ns3::ThreeGppChannelModel::GetNewChannel().

◆ m_generatedTime

Time ns3::MatrixBasedChannelModel::ChannelMatrix::m_generatedTime

◆ m_nodeIds

std::pair<uint32_t, uint32_t> ns3::MatrixBasedChannelModel::ChannelMatrix::m_nodeIds

the first element is the s-node ID (the transmitter when the channel was generated), the second element is the u-node ID (the receiver when the channel was generated)

Definition at line 67 of file matrix-based-channel-model.h.

Referenced by ns3::ThreeGppChannelModel::GetChannel(), and IsReverse().


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