diff options
| author | Loic Guegan <manzerberdes@gmx.com> | 2019-05-16 14:32:18 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerberdes@gmx.com> | 2019-05-16 14:32:18 +0200 |
| commit | 026a84902cdc22f64b53aea3678d576bc29f479b (patch) | |
| tree | 5b0cb6540533337c6c331f1333ac37979ad49ae4 /ns3-simulations/nix/simulator/modules/modules.hpp | |
| parent | 9305e544d3c3b3ad49a47587616f2bde1dd8d323 (diff) | |
Update simulators
Diffstat (limited to 'ns3-simulations/nix/simulator/modules/modules.hpp')
| -rw-r--r-- | ns3-simulations/nix/simulator/modules/modules.hpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ns3-simulations/nix/simulator/modules/modules.hpp b/ns3-simulations/nix/simulator/modules/modules.hpp index b537e92..e1f197d 100644 --- a/ns3-simulations/nix/simulator/modules/modules.hpp +++ b/ns3-simulations/nix/simulator/modules/modules.hpp @@ -1,5 +1,4 @@ - #ifndef MODULES_HPP #define MODULES_HPP @@ -33,13 +32,15 @@ #include <utility> // To use std::pair #include <iomanip> // To use std::setw -#define SIM_TIME 60 +#define SIM_TIME 60 // 30mins simulations +#define RECT_SIZE 10 // Sensors random rectangle position size +#define MAX_PACKET_BY_SENSOR 900000 // Reasonable big number (in order that simulation end before sensors stop sending packets) // ECOFEN #define ECOFEN_LOG_EVERY 0.5 // WIFI Energy Values -#define BASICENERGYSOURCEINITIALENERGYJ 10000 +#define BASICENERGYSOURCEINITIALENERGYJ 10000000 #define BASICENERGYSUPPLYVOLTAGEV 3.3 #define TXCURRENTA 0.38 #define RXCURRENTA 0.313 @@ -68,7 +69,8 @@ typedef std::pair<NodeContainer,EndPoint> CloudInfos; // Format (CloudHops,Cloud /** * Create a WIFI cell paltform composed of nbSensors sensors and ap as an access point */ -Cell createCell(uint32_t nbSensors, Ptr<ns3::Node> ap); +Cell createCell(uint32_t nbSensors, Ptr<ns3::Node> ap,int positionSeed); + /** * Build P2P network composed of nbHop hops (to simulate edge->cloud communications) * Note: Cloud Servers are not considered here and completely ignored ! @@ -85,7 +87,7 @@ void setupScenario(Cell cell, CloudInfos cloudInfos, int sensorsPktSize, int sen /* * Configure WIFI energy module for cell */ -void setupCellEnergy(Cell cell); +DeviceEnergyModelContainer setupCellEnergy(Cell cell); /* * Configure link/port energy using ecofen */ |
