Init final simulator source

This commit is contained in:
Loic Guegan 2019-04-12 13:52:06 +02:00
parent 23e8f7f688
commit 9272834371
7 changed files with 302 additions and 0 deletions

View file

@ -0,0 +1,10 @@
#include "modules.hpp"
void PktReceived(std::string nodeName,Ptr< const Packet > packet, const Address &address){
NS_LOG_UNCOND("Node " << nodeName << " receive a packet");
}
void EnergyUpdated(std::string nodeName,double oldValue, double newValue){
NS_LOG_UNCOND("Node " << nodeName << " consumes " << newValue << "J");
}