From ceabb2d95d3da8fd8ab2761e72430027f2645867 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 12 Apr 2019 16:45:24 +0200 Subject: Update simulator --- ns3-simulator/modules/modules.hpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'ns3-simulator/modules/modules.hpp') 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 // To use std::pair #include // 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 CellNetDevices; // Form typedef std::pair Cell; typedef std::pair EndPoint; // Format (IP,Port) typedef std::pair 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 ---------- /** -- cgit v1.2.3