--- a/src/lte/examples/lena-fading.cc Mon Oct 24 09:45:00 2011 +0200
+++ b/src/lte/examples/lena-fading.cc Mon Oct 24 15:26:16 2011 +0200
@@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * Author: Manuel Requena <manuel.requena@cttc.es>
+ * Author: Marco Miozzo <marco.miozzo@cttc.es>
*/
@@ -24,6 +24,7 @@
#include "ns3/mobility-module.h"
#include "ns3/lte-module.h"
#include "ns3/config-store.h"
+#include <ns3/string.h>
//#include "ns3/gtk-config-store.h"
using namespace ns3;
@@ -42,22 +43,27 @@
//inputConfig.ConfigureDefaults ();
// parse again so you can override default values from the command line
- cmd.Parse (argc, argv);
+ //cmd.Parse (argc, argv);
Ptr<LenaHelper> lena = CreateObject<LenaHelper> ();
//lena->EnableLogComponents ();
- // LogComponentEnable ("LtePhy", LOG_LEVEL_ALL);
-// LogComponentEnable ("LteEnbPhy", LOG_LEVEL_ALL);
- // LogComponentEnable ("LteUePhy", LOG_LEVEL_ALL);
-// LogComponentEnable ("PfFfMacScheduler", LOG_LEVEL_ALL);
LogComponentEnable ("LenaHelper", LOG_LEVEL_ALL);
-// LogComponentEnable ("BuildingsPropagationLossModel", LOG_LEVEL_ALL);
LogComponentEnable ("TraceFadingLossModel", LOG_LEVEL_ALL);
lena->SetAttribute ("FadingModel", StringValue ("ns3::TraceFadingLossModel"));
lena->SetFadingModelAttribute ("TraceFilename", StringValue ("src/lte/model/FadingTraces/fading_trace_EPA_3kmph.fad"));
+ // these parameters have to setted only in case of the trace format
+ // differs from the standard one, that is
+ // - 10 seconds length trace
+ // - 10,000 samples
+ // - 0.5 seconds for window size
+ // - 100 RB
+ lena->SetFadingModelAttribute ("TraceLength", TimeValue (Seconds (10.0)));
+ lena->SetFadingModelAttribute ("SamplesNum", UintegerValue (10000));
+ lena->SetFadingModelAttribute ("WindowSize", TimeValue (Seconds (0.5)));
+ lena->SetFadingModelAttribute ("RbNum", UintegerValue (100));
// Create Nodes: eNodeB and UE
NodeContainer enbNodes;