add missing implementations
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue, 08 Jul 2008 10:02:28 -0700
changeset 3388 0258bd0793ab
parent 3387 c6913c670dca
child 3389 d02d0233f14b
add missing implementations
src/devices/wifi/propagation-loss-model.cc
src/devices/wifi/propagation-loss-model.h
--- 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;