22 : m_firstFrequencyHz(firstFrequencyHz),
23 m_lastFrequencyHz(lastFrequencyHz),
24 m_dutyCycle(dutyCycle),
25 m_nextTransmissionTime(
Time(0)),
26 m_maxTxPowerDbm(maxTxPowerDbm)
28 NS_LOG_FUNCTION(
this << firstFrequencyHz << lastFrequencyHz << dutyCycle << maxTxPowerDbm);
58 return Contains(logicalChannel->GetFrequency());
Smart pointer class similar to boost::intrusive_ptr.
Simulation virtual time values and global simulation resolution.
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.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Every class exported by the ns3 library is enclosed in the ns3 namespace.