32 NS_LOG_COMPONENT_DEFINE(
"LoraSubBand");
34 NS_OBJECT_ENSURE_REGISTERED(LoraSubBand);
39 static TypeId tid = TypeId(
"ns3::LoraSubBand").SetParent<Object>();
45 NS_LOG_FUNCTION(
this);
52 : m_firstFrequency(firstFrequency),
53 m_lastFrequency(lastFrequency),
54 m_dutyCycle(dutyCycle),
55 m_nextTransmissionTime(Seconds(0)),
56 m_maxTxPowerDbm(maxTxPowerDbm)
58 NS_LOG_FUNCTION(
this << firstFrequency << lastFrequency << dutyCycle << maxTxPowerDbm);
63 NS_LOG_FUNCTION(
this);
87 double frequency = logicalChannel->GetFrequency();
double GetFirstFrequency(void)
Get the lowest frequency of the LoraSubBand.
void SetMaxTxPowerDbm(double maxTxPowerDbm)
Set the maximum transmission power that is allowed on this LoraSubBand.
double m_maxTxPowerDbm
The maximum transmission power that is admitted on this LoraSubBand.
Time GetNextTransmissionTime(void)
Returns the next time from which transmission on this LoraSubBand will be possible.
void SetNextTransmissionTime(Time nextTime)
Update the next transmission time.
double m_firstFrequency
Starting frequency of the LoraSubBand, in MHz.
Time m_nextTransmissionTime
The next time a transmission will be allowed in this LoraSubBand.
double m_dutyCycle
The duty cycle that needs to be enforced on this LoraSubBand.
double GetMaxTxPowerDbm(void)
Return the maximum transmission power that is allowed on this LoraSubBand.
bool BelongsToLoraSubBand(double frequency)
Return whether or not a frequency belongs to this LoraSubBand.
static TypeId GetTypeId(void)
double GetDutyCycle(void)
Get the last frequency of the LoraSubBand.
double m_lastFrequency
Ending frequency of the LoraSubBand, in MHz.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.