Add ECOFEN

This commit is contained in:
Loic Guegan 2019-04-12 16:05:29 +02:00
parent cb10ad2490
commit 32ccf612d0
7 changed files with 54 additions and 18 deletions

View file

@ -6,5 +6,5 @@ void PktReceived(std::string nodeName,Ptr< const Packet > packet, const Address
}
void EnergyUpdated(std::string nodeName,double oldValue, double newValue){
NS_LOG_UNCOND("Node " << nodeName << " consumes " << newValue << "J");
NS_LOG_UNCOND("Node " << nodeName << " consumes " << newValue-oldValue << "J");
}