<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
Hi,</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
I am not much familiar with "WifiRadioEnergyModelHelper" but I have some suggestions that may work for you. </div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
You can write private energy consumption functions in Forwarder.cpp class and can call them from the following functions. </div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
<ol>
<li>Forwarder::onIncomingInterest -> In this function you call your private function for example computerInterestPacketEnergyConsumption(interest). You can then compute the Interest packet energy consumption by obtaining the Interest packet size in bits and
 multiplying it by the per-bit energy consumption value (based on the 802.15.4 sensor node). <br>
</li><li>Forwarder::onIncomingData -> for Data packet you can follow the same procedure as mentioned above<br>
</li><li>Forwarder::onOutgoingInterest -> same as mentioned above<br>
</li><li>Forwarder::onOutgoingData -> same as mentioned above<br>
</li><li>Forwarder::onIncomingNack<br>
</li></ol>
</div>
<div style="margin: 0px; font-size: 15px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; color: rgb(32, 31, 30); background-color: rgb(255, 255, 255)">
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0)">
In regards to your power in nodes question, you can use the following class and its function from LRWPAN module to set power and cahnnel number for the communication. </div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0)">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0)">
LrWpanSpectrumValueHelper.CreateTxPowerSpectralDensity (double txPower, uint32_t channel).<br>
</div>
</div>
<br>
</div>
<div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div></div>
<div></div>
<div></div>
<div><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"></span></b></span></div>
<div style="font-size:11pt; font-family:Calibri,sans-serif; margin:0px 0in 0.000133333px; background:white">
<p style="background:white; font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt">
<b><span style="margin:0px; padding:0in; border:1pt none windowtext; font-family:Calibri,Helvetica,sans-serif; color:black">Regards </span></b><span style="margin:0px; color:rgb(32,31,30)"></span></p>
<p style="background:white; font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt">
<span style="margin:0px"><span style="margin:0px; padding:0in; border:1pt none windowtext; font-family:Calibri,Helvetica,sans-serif; color:rgb(32,31,30)"> </span></span><span style="margin:0px; color:rgb(32,31,30)"></span></p>
<p style="background:white; font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt; text-align:start">
<b><span style="margin:0px"><span style="margin:0px; padding:0in; border:1pt none windowtext; font-family:Calibri,Helvetica,sans-serif; color:black">Muhammad Atif Ur Rehman</span></span></b><span style="margin:0px"><span style="margin:0px; padding:0in; border:1pt none windowtext; font-family:Calibri,Helvetica,sans-serif; color:black"> </span><b><span style="margin:0px; font-family:Calibri,Helvetica,sans-serif">(Ph.D.
 Candidate)</span></b><br>
</span></p>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ndnSIM <ndnsim-bounces@lists.cs.ucla.edu> on behalf of ndnsim-request@lists.cs.ucla.edu <ndnsim-request@lists.cs.ucla.edu><br>
<b>Sent:</b> Friday, May 8, 2020 12:00 AM<br>
<b>To:</b> ndnsim@lists.cs.ucla.edu <ndnsim@lists.cs.ucla.edu><br>
<b>Subject:</b> ndnSIM Digest, Vol 90, Issue 6</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Send ndnSIM mailing list submissions to<br>
        ndnsim@lists.cs.ucla.edu<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
or, via email, send a message with subject or body 'help' to<br>
        ndnsim-request@lists.cs.ucla.edu<br>
<br>
You can reach the person managing the list at<br>
        ndnsim-owner@lists.cs.ucla.edu<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of ndnSIM digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: (no subject) (bellal zitouni)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 7 May 2020 09:16:58 +0200<br>
From: bellal zitouni <bellalzitouni@gmail.com><br>
To: ndnsim@lists.cs.ucla.edu<br>
Subject: Re: [ndnSIM] (no subject)<br>
Message-ID:<br>
        <CABF9D-1ENiHjZcd7MtCSsca1EnN6taqGX8tvTUDXwJQMcNN_JA@mail.gmail.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi, please can you help solve my issue.i'm working on IEEE 802.15.4 and I<br>
need to simulate the energy consumption but in the documentation, I find<br>
only  WifiRadioEnergyModelHelper<br>
<br>
Le mar. 5 mai 2020 ? 19:58, bellal zitouni <bellalzitouni@gmail.com> a<br>
?crit :<br>
<br>
> Hi all<br>
> How can i install power in all the nodes<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20200507/34ccac9d/attachment-0001.html">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20200507/34ccac9d/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
ndnSIM mailing list<br>
ndnSIM@lists.cs.ucla.edu<br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br>
<br>
------------------------------<br>
<br>
End of ndnSIM Digest, Vol 90, Issue 6<br>
*************************************<br>
</div>
</span></font></div>
</body>
</html>