14#include "ns3/nstime.h"
15#include "ns3/simple-ref-count.h"
42 double maxTxPowerDbm);
Smart pointer class similar to boost::intrusive_ptr.
A template-based reference counting class.
Simulation virtual time values and global simulation resolution.
Class representing a SubBand, i.e., a frequency band subject to some regulations on duty cycle and tr...
double GetDutyCycle() const
Get the duty cycle of the subband.
bool Contains(uint32_t frequencyHz) const
Return whether or not a frequency belongs to this SubBand.
Time GetNextTransmissionTime()
Returns the next time from which transmission on this subband will be possible.
Time m_nextTransmissionTime
The next time a transmission will be allowed in this subband.
double m_dutyCycle
The duty cycle that needs to be enforced on this subband.
void SetNextTransmissionTime(Time nextTime)
Update the next transmission time.
uint32_t GetFirstFrequency() const
Get the lowest frequency of the SubBand.
uint32_t m_firstFrequencyHz
Starting frequency of the subband, in Hz.
double GetMaxTxPowerDbm() const
Return the maximum transmission power that is allowed on this SubBand.
uint32_t m_lastFrequencyHz
Ending frequency of the subband, in Hz.
SubBand(uint32_t firstFrequencyHz, uint32_t lastFrequencyHz, double dutyCycle, double maxTxPowerDbm)
Create a new SubBand by specifying all of its properties.
uint32_t GetLastFrequency() const
Get the highest frequency of the SubBand.
void SetMaxTxPowerDbm(double maxTxPowerDbm)
Set the maximum transmission power that is allowed on this SubBand.
double m_maxTxPowerDbm
The maximum transmission power that is admitted on this subband.
Every class exported by the ns3 library is enclosed in the ns3 namespace.