Merge branch 'add-get-prop-model'

Close !262

* add-get-prop-model:
  spectum: Fixes style of the last change on spectrum-channel.cc
  spectrum: Retrieve a pointer to the propagation model
This commit is contained in:
Natale Patriciello
2020-05-05 08:12:31 +02:00
2 changed files with 11 additions and 1 deletions

View File

@@ -149,5 +149,11 @@ SpectrumChannel::GetSpectrumPropagationLossModel (void)
return m_spectrumPropagationLoss;
}
Ptr<PropagationLossModel>
SpectrumChannel::GetPropagationLossModel ()
{
return m_propagationLoss;
}
} // namespace

View File

@@ -95,7 +95,11 @@ public:
*/
Ptr<SpectrumPropagationLossModel> GetSpectrumPropagationLossModel (void);
/**
* Get the propagation loss model.
* \returns a pointer to the propagation loss model.
*/
Ptr<PropagationLossModel> GetPropagationLossModel (void);
/**
* Used by attached PHY instances to transmit signals on the channel