I'm trying to simulate a wireless sensor network in omnet++4.0 . I
require a standard formula for the reduction of power of the sensor
node during transmission of messages. Pls provide links . Thanks in
Advance.
--------------------------------------------------
From: "kanda" <dines...@gmail.com>
Sent: Thursday, February 04, 2010 7:02 AM
To: "omnetpp" <omn...@googlegroups.com>
Subject: [Omnetpp-l] How to calculate power consumed
> --
> You received this message because you are subscribed to the Google Groups
> "omnetpp" group.
> To post to this group, send email to omn...@googlegroups.com.
> To unsubscribe from this group, send email to
> omnetpp+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/omnetpp?hl=en.
>
>
It's possible, but be aware that abstractRadioExtended is mean to be
subclassed in your really radio implementation. so. if you want to
implement a Ieee80216 radio, you should extend the AbstractRadioExtended
and set there all the parameters according your needs.
JcM
Vitali Anselm wrote:
> Hello,
>
> I wonder whether there is a bug within AbstractRadioExtended.cc,
> exactly in "void AbstractRadioExtended::initialize(int stage)". I
> guess, that the first IF condition is wrong because it returns always
> TRUE, so that only the "propagationModel" is possible, but I need my
> Ieee80216ReceptionModel. I think the condition should be : *if*
> (cc->par("propagationModel").str()=="")
>
>
> *if* (cc->par("propagationModel").str()!="") <<<<<<<<<<<<<
> I guess this condition is wrong
>
> receptionModel = (IReceptionModel *)
> createOne(cc->par("propagationModel").stringValue());
>
> *else*
>
> {
>
> *if* (par("attenuationModel").stdstringValue ()=="_tworay_")
>
> receptionModel = createReceptionModelTwoRay();
>
> *else* *if* (par("attenuationModel").stdstringValue ()=="_pathlost_")
>
> receptionModel = createReceptionModelPathLost();
>
> *else*
>
> receptionModel = createReceptionModel();
>
> }
>
> receptionModel->initializeFrom(*this*);
>
>
>
> radioModel = createRadioModel();
>
> radioModel->initializeFrom(*this*);