View | Details | Raw Unified | Return to bug 2001
Collapse All | Expand All

(-)a/src/propagation/model/cost231-propagation-loss-model.cc (-3 / +8 lines)
 Lines 64-76    Link Here 
64
                   "The distance under which the propagation model refuses to give results (m) ",
64
                   "The distance under which the propagation model refuses to give results (m) ",
65
                   DoubleValue (0.5),
65
                   DoubleValue (0.5),
66
                   MakeDoubleAccessor (&Cost231PropagationLossModel::SetMinDistance, &Cost231PropagationLossModel::GetMinDistance),
66
                   MakeDoubleAccessor (&Cost231PropagationLossModel::SetMinDistance, &Cost231PropagationLossModel::GetMinDistance),
67
                   MakeDoubleChecker<double> ())
68
    .AddAttribute ("Shadowing",
69
                   "The Cm term of eq. 4.4.3 in the COST 231 final report. ",
70
                   DoubleValue (3.0),
71
                   MakeDoubleAccessor (&Cost231PropagationLossModel::SetShadowing, &Cost231PropagationLossModel::GetShadowing),
67
                   MakeDoubleChecker<double> ());
72
                   MakeDoubleChecker<double> ());
68
  return tid;
73
  return tid;
69
}
74
}
70
75
71
Cost231PropagationLossModel::Cost231PropagationLossModel ()
76
Cost231PropagationLossModel::Cost231PropagationLossModel ()
72
{
77
{
73
  m_shadowing = 10;
74
}
78
}
75
79
76
void
80
void
 Lines 81-87    Link Here 
81
}
85
}
82
86
83
double
87
double
84
Cost231PropagationLossModel::GetShadowing (void)
88
Cost231PropagationLossModel::GetShadowing (void) const
85
{
89
{
86
  return m_shadowing;
90
  return m_shadowing;
87
}
91
}
 Lines 95-101    Link Here 
95
Cost231PropagationLossModel::SetLambda (double lambda)
99
Cost231PropagationLossModel::SetLambda (double lambda)
96
{
100
{
97
  m_lambda = lambda;
101
  m_lambda = lambda;
98
  m_frequency = 300000000 / lambda;
102
  const double C = 299792458;
103
  m_frequency = C / lambda;
99
}
104
}
100
105
101
double
106
double
(-)a/src/propagation/model/cost231-propagation-loss-model.h (-3 / +5 lines)
 Lines 114-125    Link Here 
114
   */
114
   */
115
  double GetLambda (void) const;
115
  double GetLambda (void) const;
116
  /**
116
  /**
117
   * Get the shadowing value
117
   * Get the shadowing value used for the \f$ C_m \f$ term 
118
   * of eq. 4.4.3 in the COST 231 final report.
118
   * \returns the shadowing value
119
   * \returns the shadowing value
119
   */
120
   */
120
  double GetShadowing (void);
121
  double GetShadowing (void) const;
121
  /**
122
  /**
122
   * Set the shadowing value
123
   * Set the shadowing value. This value is used for the \f$ C_m \f$ term 
124
   * of eq. 4.4.3 in the COST 231 final report. 
123
   * \param shadowing the shadowing value
125
   * \param shadowing the shadowing value
124
   */
126
   */
125
  void SetShadowing (double shadowing);
127
  void SetShadowing (double shadowing);

Return to bug 2001