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>
133 uint32_t
GetId ()
const;
Class holding the azimuth and inclination angles of spherical coordinates.
A base class which provides memory management and object aggregation.
Class implementing the phased array model virtual base class.
static uint32_t m_idCounter
the ID counter that is used to determine the unique antenna array ID
Ptr< const AntennaModel > GetAntennaElement(void) const
Returns a pointer to the AntennaModel instance used to model the elements of the array.
ComplexVector GetSteeringVector(Angles a) const
Returns the steering vector that points toward the specified position.
PhasedArrayModel(void)
Constructor.
virtual ~PhasedArrayModel(void)
Destructor.
virtual Vector GetElementLocation(uint64_t index) const =0
Returns the location of the antenna element with the specified index, normalized with respect to the ...
uint32_t GetId() const
Returns the ID of this antenna array instance.
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 ...
ComplexVector GetBeamformingVector(void) const
Returns the beamforming vector that is currently being used.
Ptr< AntennaModel > m_antennaElement
the model of the antenna element in use
void SetAntennaElement(Ptr< AntennaModel > antennaElement)
Sets the antenna model to be used.
virtual uint64_t GetNumberOfElements(void) const =0
Returns the number of antenna elements.
bool m_isBfVectorValid
ensures the validity of the beamforming vector
static double ComputeNorm(const ComplexVector &vector)
Utility method to compute the euclidean norm of a ComplexVector.
static TypeId GetTypeId(void)
Get the type ID.
uint32_t m_id
the ID of this antenna array instance
void SetBeamformingVector(const ComplexVector &beamformingVector)
Sets the beamforming vector to be used.
ComplexVector m_beamformingVector
the beamforming vector in use
std::vector< std::complex< double > > ComplexVector
type definition for complex vectors
a unique identifier for an interface.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::ostream & operator<<(std::ostream &os, const Angles &a)