mirror of
https://gitlab.com/manzerbredes/paper-lowrate-iot.git
synced 2025-05-01 17:37:45 +00:00
Update simulator
This commit is contained in:
parent
32ccf612d0
commit
ceabb2d95d
4 changed files with 33 additions and 23 deletions
|
@ -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 ----------
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue