19 #ifndef PHASED_ARRAY_MODEL_H 20 #define PHASED_ARRAY_MODEL_H 22 #include <ns3/object.h> 23 #include <ns3/angles.h> 25 #include <ns3/antenna-model.h>
void SetAntennaElement(Ptr< AntennaModel > antennaElement)
Sets the antenna model to be used.
static TypeId GetTypeId(void)
bool m_isBfVectorValid
ensures the validity of the beamforming vector
ComplexVector m_beamformingVector
the beamforming vector in use
virtual uint64_t GetNumberOfElements(void) const =0
Returns the number of antenna elements.
Class holding the azimuth and inclination angles of spherical coordinates.
Ptr< AntennaModel > m_antennaElement
the model of the antenna element in use
ComplexVector GetBeamformingVector(void) const
Returns the beamforming vector that is currently being used.
std::ostream & operator<<(std::ostream &os, const Angles &a)
ComplexVector GetSteeringVector(Angles a) const
Returns the steering vector that points toward the specified position.
virtual Vector GetElementLocation(uint64_t index) const =0
Returns the location of the antenna element with the specified index, normalized with respect to the ...
virtual ~PhasedArrayModel(void)
Destructor.
void SetBeamformingVector(const ComplexVector &beamformingVector)
Sets the beamforming vector to be used.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Class implementing the phased array model virtual base class.
PhasedArrayModel(void)
Constructor.
std::vector< std::complex< double > > ComplexVector
type definition for complex vectors
Ptr< const AntennaModel > GetAntennaElement(void) const
Returns a pointer to the AntennaModel instance used to model the elements of the array.
A base class which provides memory management and object aggregation.
virtual std::pair< double, double > GetElementFieldPattern(Angles a) const =0
Returns the horizontal and vertical components of the antenna element field pattern at the specified ...
a unique identifier for an interface.
static double ComputeNorm(const ComplexVector &vector)
Utility method to compute the euclidean norm of a ComplexVector.