49 : m_firstFrequency(firstFrequency),
50 m_lastFrequency(lastFrequency),
51 m_dutyCycle(dutyCycle),
52 m_nextTransmissionTime(
Seconds(0)),
53 m_maxTxPowerDbm(maxTxPowerDbm)
55 NS_LOG_FUNCTION(
this << firstFrequency << lastFrequency << dutyCycle << maxTxPowerDbm);
84 double frequency = logicalChannel->GetFrequency();
A base class which provides memory management and object aggregation.
Smart pointer class similar to boost::intrusive_ptr.
Simulation virtual time values and global simulation resolution.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
double GetDutyCycle() const
**
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.
double m_firstFrequency
Starting frequency of the subband, in MHz.
bool BelongsToSubBand(double frequency) const
Return whether or not a frequency belongs to this SubBand.
static TypeId GetTypeId()
Register this type.
void SetNextTransmissionTime(Time nextTime)
Update the next transmission time.
double GetFirstFrequency() const
Get the lowest frequency of the SubBand.
~SubBand() override
Destructor.
double GetMaxTxPowerDbm() const
Return the maximum transmission power that is allowed on this SubBand.
double m_lastFrequency
Ending frequency of the subband, in MHz.
SubBand()
Default constructor.
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 ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Time Seconds(double value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.