summaryrefslogtreecommitdiff
path: root/ns3-simulator/modules/modules.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerberdes@gmx.com>2019-04-12 16:45:24 +0200
committerLoic Guegan <manzerberdes@gmx.com>2019-04-12 16:45:24 +0200
commitceabb2d95d3da8fd8ab2761e72430027f2645867 (patch)
tree49613e9d5d7cab4dc221f6e35d0a185b82d4af6a /ns3-simulator/modules/modules.hpp
parent32ccf612d0ee2b167204f9b6191258ae890ccd7f (diff)
Update simulator
Diffstat (limited to 'ns3-simulator/modules/modules.hpp')
-rw-r--r--ns3-simulator/modules/modules.hpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/ns3-simulator/modules/modules.hpp b/ns3-simulator/modules/modules.hpp
index 0b84aa8..c43ce41 100644
--- a/ns3-simulator/modules/modules.hpp
+++ b/ns3-simulator/modules/modules.hpp
@@ -31,6 +31,22 @@
#include <utility> // To use std::pair
#include <iomanip> // To use std::setw
+// WIFI Energy Values
+#define BASICENERGYSOURCEINITIALENERGYJ 1000
+#define BASICENERGYSUPPLYVOLTAGEV 3.3
+#define TXCURRENTA 0.38
+#define RXCURRENTA 0.313
+#define IDLECURRENTA 0.273
+
+// Cloud Energy Values
+#define ONCONSO 0
+#define OFFCONSO 0
+#define IDLECONSO 0
+#define RECVBYTEENERGY 10
+#define SENTBYTEENERGY 10
+#define RECVPKTENERGY 10
+#define SENTPKTENERGY 0
+
using namespace ns3;
// ---------- Data types ----------
@@ -39,7 +55,7 @@ typedef std::pair<NetDeviceContainer,NetDeviceContainer> CellNetDevices; // Form
typedef std::pair<CellNodes,CellNetDevices> Cell;
typedef std::pair<Ipv4Address,int> EndPoint; // Format (IP,Port)
typedef std::pair<NodeContainer,EndPoint> CloudInfos; // Format (CloudHops,CloudEndPoint), here data sent to CloudEndPoint
- // via CloudHops.Get(0) will flow throw all hops until the reaching the cloud
+
// ---------- platform.cc ----------
/**