UnitDisk.cc

00001 #include "UnitDisk.h"
00002 
00003 Define_Module(UnitDisk);
00004 
00005 #ifndef udEV
00006 #define udEV (ev.isDisabled()||!debug) ? ev : ev << "UnitDisk: "
00007 #endif
00008 
00009 void UnitDisk::initialize(int stage)
00010 {
00011   ConnectionManager::initialize(stage);
00012   if (stage == 0)
00013   {
00014     debug = par("debug").boolValue();
00015     //cPar *p = addPar("logName"); //TODO: addPar removed in omnet 4, replace it
00016     //p->setStringValue("UnitDisk");
00017     radioRange = par("radioRange").doubleValue();
00018     udEV << "UnitDisk initialised with range "<<radioRange<<endl;
00019   }
00020 }
00021