34 m_enabledForUplink(true)
45 : m_frequency(frequency),
46 m_enabledForUplink(true)
52 : m_frequency(frequency),
53 m_minDataRate(minDataRate),
54 m_maxDataRate(maxDataRate),
55 m_enabledForUplink(true)
111 double thisFreq =
first->GetFrequency();
112 double otherFreq =
second->GetFrequency();
114 NS_LOG_DEBUG(
"Checking equality between logical lora channels: " << thisFreq <<
" "
118 return (thisFreq == otherFreq);
A base class which provides memory management and object aggregation.
Smart pointer class similar to boost::intrusive_ptr.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
uint8_t m_minDataRate
The minimum data rate that is allowed on this channel.
uint8_t GetMaximumDataRate() const
Get the maximum data rate that is allowed on this channel.
LogicalLoraChannel()
Default constructor.
static TypeId GetTypeId()
Register this type.
void SetMinimumDataRate(uint8_t minDataRate)
Set the minimum data rate that is allowed on this channel.
double GetFrequency() const
Get the frequency (MHz).
~LogicalLoraChannel() override
Destructor.
double m_frequency
The central frequency of this channel, in MHz.
void SetEnabledForUplink()
Set this channel as enabled for uplink.
void DisableForUplink()
Set this channel as disabled for uplink.
void SetMaximumDataRate(uint8_t maxDataRate)
Set the maximum data rate that is allowed on this channel.
bool IsEnabledForUplink() const
Test whether this channel is marked as enabled for uplink.
bool m_enabledForUplink
Whether this channel can be used for uplink or not.
uint8_t GetMinimumDataRate() const
Get the minimum data rate that is allowed on this channel.
uint8_t m_maxDataRate
The maximum data rate that is allowed on this channel.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
#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.
bool operator!=(const Ptr< LogicalLoraChannel > &first, const Ptr< LogicalLoraChannel > &second)
Overload the != operator to compare different instances of the same LogicalLoraChannel.
bool operator==(const Ptr< LogicalLoraChannel > &first, const Ptr< LogicalLoraChannel > &second)
Overload of the == operator to compare different instances of the same LogicalLoraChannel.
Every class exported by the ns3 library is enclosed in the ns3 namespace.