--- a/src/helper/wimax-helper.cc Wed Apr 21 15:59:25 2010 -0400
+++ b/src/helper/wimax-helper.cc Thu Apr 22 11:31:45 2010 +0200
@@ -80,7 +80,7 @@
phy = CreateObject<SimpleOfdmWimaxPhy> ();
if (!m_channel)
{
- m_channel = CreateObject<SimpleOfdmWimaxChannel> ();
+ m_channel = CreateObject<SimpleOfdmWimaxChannel> (SimpleOfdmWimaxChannel::COST231_PROPAGATION);
}
break;
default:
@@ -91,6 +91,15 @@
return phy;
}
+void WimaxHelper::SetPropagationLossModel (SimpleOfdmWimaxChannel::PropModel propagationModel)
+{
+ if (!m_channel)
+ {
+ m_channel = CreateObject<SimpleOfdmWimaxChannel> ();
+ }
+ m_channel->GetObject<SimpleOfdmWimaxChannel> ()->SetPropagationModel (propagationModel);
+}
+
Ptr<WimaxPhy> WimaxHelper::CreatePhy (PhyType phyType, char * SNRTraceFilePath, bool activateLoss)
{
Ptr<WimaxPhy> phy;
@@ -104,7 +113,7 @@
sphy->ActivateLoss (activateLoss);
if (!m_channel)
{
- m_channel = CreateObject<SimpleOfdmWimaxChannel> ();
+ m_channel = CreateObject<SimpleOfdmWimaxChannel> (SimpleOfdmWimaxChannel::COST231_PROPAGATION);
}
break;
default: