mirror of
https://gitlab.com/manzerbredes/paper-lowrate-iot.git
synced 2025-05-01 01:17:46 +00:00
Update simulations
This commit is contained in:
parent
daa845cc49
commit
bf96465528
393 changed files with 5613238 additions and 70539 deletions
|
@ -45,7 +45,7 @@ int main(int argc, char* argv[]){
|
|||
Ptr<Ipv4FlowClassifier> classifier = DynamicCast<Ipv4FlowClassifier> (flowmon.GetClassifier ());
|
||||
|
||||
// Run Simulations
|
||||
Simulator::Stop (Seconds (30));
|
||||
Simulator::Stop (Seconds (SIM_TIME));
|
||||
Simulator::Run ();
|
||||
|
||||
// Print logs
|
||||
|
|
|
@ -63,6 +63,6 @@ void setupCloudEnergy(CloudInfos cloudInfos){
|
|||
completeNetdeviceEnergy.Install(cloudNodes);
|
||||
|
||||
ns3::ConsumptionLogger conso;
|
||||
conso.NodeConso(ns3::Seconds (ECOFEN_LOG_EVERY), ns3::Seconds(ECOFEN_LOG_UNTIL), cloudNodes);
|
||||
conso.NodeConso(ns3::Seconds (ECOFEN_LOG_EVERY), ns3::Seconds(SIM_TIME), cloudNodes);
|
||||
}
|
||||
|
||||
|
|
|
@ -33,12 +33,13 @@
|
|||
#include <utility> // To use std::pair
|
||||
#include <iomanip> // To use std::setw
|
||||
|
||||
#define SIM_TIME 60
|
||||
|
||||
// ECOFEN
|
||||
#define ECOFEN_LOG_UNTIL 100
|
||||
#define ECOFEN_LOG_EVERY 0.1
|
||||
#define ECOFEN_LOG_EVERY 0.5
|
||||
|
||||
// WIFI Energy Values
|
||||
#define BASICENERGYSOURCEINITIALENERGYJ 10
|
||||
#define BASICENERGYSOURCEINITIALENERGYJ 10000
|
||||
#define BASICENERGYSUPPLYVOLTAGEV 3.3
|
||||
#define TXCURRENTA 0.38
|
||||
#define RXCURRENTA 0.313
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue