--- a/src/devices/wifi/propagation-loss-model.cc Tue Jul 08 10:02:11 2008 -0700
+++ b/src/devices/wifi/propagation-loss-model.cc Tue Jul 08 10:02:28 2008 -0700
@@ -97,7 +97,8 @@
.AddAttribute ("MinDistance",
"The distance under which the propagation model refuses to give results (m)",
DoubleValue (0.5),
- MakeDoubleAccessor (&FriisPropagationLossModel::m_minDistance),
+ MakeDoubleAccessor (&FriisPropagationLossModel::SetMinDistance,
+ &FriisPropagationLossModel::GetMinDistance),
MakeDoubleChecker<double> ())
;
return tid;
@@ -116,6 +117,16 @@
return m_systemLoss;
}
void
+FriisPropagationLossModel::SetMinDistance (double minDistance)
+{
+ m_minDistance = minDistance;
+}
+double
+FriisPropagationLossModel::GetMinDistance (void) const
+{
+ return m_minDistance;
+}
+void
FriisPropagationLossModel::SetLambda (double frequency, double speed)
{
m_lambda = speed / frequency;
--- a/src/devices/wifi/propagation-loss-model.h Tue Jul 08 10:02:11 2008 -0700
+++ b/src/devices/wifi/propagation-loss-model.h Tue Jul 08 10:02:28 2008 -0700
@@ -134,6 +134,11 @@
void SetMinDistance (double minDistance);
/**
+ * \returns the minimum distance.
+ */
+ double GetMinDistance (void) const;
+
+ /**
* \returns the current wavelength (m)
*/
double GetLambda (void) const;