A Discrete-Event Network Simulator
API
NodeStatistics Class Reference
+ Collaboration diagram for NodeStatistics:

Public Member Functions

 NodeStatistics (NetDeviceContainer aps, NetDeviceContainer stas)
 
 NodeStatistics (NetDeviceContainer aps, NetDeviceContainer stas)
 
 NodeStatistics (NetDeviceContainer aps, NetDeviceContainer stas)
 
void AdvancePosition (Ptr< Node > node, int stepsSize, int stepsTime)
 
void AdvancePosition (Ptr< Node > node, int stepsSize, int stepsTime)
 
void CheckStatistics (double time)
 
void CheckStatistics (double time)
 
Gnuplot2dDataset GetBusyDatafile ()
 
double GetBusyTime ()
 
Gnuplot2dDataset GetDatafile ()
 
Gnuplot2dDataset GetDatafile ()
 
Gnuplot2dDataset GetDatafile ()
 
Gnuplot2dDataset GetIdleDatafile ()
 
Vector GetPosition (Ptr< Node > node)
 
Vector GetPosition (Ptr< Node > node)
 
Gnuplot2dDataset GetPowerDatafile ()
 
Gnuplot2dDataset GetPowerDatafile ()
 
Gnuplot2dDataset GetRxDatafile ()
 
Gnuplot2dDataset GetTxDatafile ()
 
void PhyCallback (std::string path, Ptr< const Packet > packet)
 
void PhyCallback (std::string path, Ptr< const Packet > packet)
 
void PowerCallback (std::string path, double oldPower, double newPower, Mac48Address dest)
 
void PowerCallback (std::string path, double oldPower, double newPower, Mac48Address dest)
 
void RateCallback (std::string path, DataRate oldRate, DataRate newRate, Mac48Address dest)
 
void RateCallback (std::string path, DataRate oldRate, DataRate newRate, Mac48Address dest)
 
void RxCallback (std::string path, Ptr< const Packet > packet, const Address &from)
 
void RxCallback (std::string path, Ptr< const Packet > packet, const Address &from)
 
void RxCallback (std::string path, Ptr< const Packet > packet, const Address &from)
 
void SetPosition (Ptr< Node > node, Vector position)
 
void SetPosition (Ptr< Node > node, Vector position)
 
void StateCallback (std::string path, Time init, Time duration, WifiPhyState state)
 

Private Types

typedef std::vector< std::pair< Time, DataRate > > TxTime
 
typedef std::vector< std::pair< Time, DataRate > > TxTime
 

Private Member Functions

Time GetCalcTxTime (DataRate rate)
 
Time GetCalcTxTime (DataRate rate)
 
void SetupPhy (Ptr< WifiPhy > phy)
 
void SetupPhy (Ptr< WifiPhy > phy)
 

Private Attributes

double busyTime
 
std::map< Mac48Address, double > currentPower
 
std::map< Mac48Address, DataRatecurrentRate
 
double idleTime
 
uint32_t m_bytesTotal
 
Gnuplot2dDataset m_output
 
Gnuplot2dDataset m_output_busy
 
Gnuplot2dDataset m_output_idle
 
Gnuplot2dDataset m_output_power
 
Gnuplot2dDataset m_output_rx
 
Gnuplot2dDataset m_output_tx
 
Ptr< WifiPhymyPhy
 
double rxTime
 
TxTime timeTable
 
double totalBusyTime
 
double totalEnergy
 
double totalIdleTime
 
double totalRxTime
 
double totalTime
 
double totalTxTime
 
double txTime
 

Detailed Description

Definition at line 103 of file power-adaptation-distance.cc.

Member Typedef Documentation

typedef std::vector<std::pair<Time, DataRate> > NodeStatistics::TxTime
private

Definition at line 97 of file power-adaptation-interference.cc.

typedef std::vector<std::pair<Time, DataRate> > NodeStatistics::TxTime
private

Definition at line 121 of file power-adaptation-distance.cc.

Constructor & Destructor Documentation

NodeStatistics::NodeStatistics ( NetDeviceContainer  aps,
NetDeviceContainer  stas 
)
NodeStatistics::NodeStatistics ( NetDeviceContainer  aps,
NetDeviceContainer  stas 
)
NodeStatistics::NodeStatistics ( NetDeviceContainer  aps,
NetDeviceContainer  stas 
)

Member Function Documentation

void NodeStatistics::AdvancePosition ( Ptr< Node node,
int  stepsSize,
int  stepsTime 
)
void NodeStatistics::AdvancePosition ( Ptr< Node node,
int  stepsSize,
int  stepsTime 
)

Definition at line 240 of file power-adaptation-distance.cc.

References GetPosition(), ns3::Simulator::Now(), NS_LOG_INFO, ns3::Simulator::Schedule(), ns3::Seconds(), and SetPosition().

+ Here is the call graph for this function:

void NodeStatistics::CheckStatistics ( double  time)
void NodeStatistics::CheckStatistics ( double  time)

Definition at line 250 of file power-adaptation-interference.cc.

References ns3::Simulator::Now(), ns3::Simulator::Schedule(), and ns3::Seconds().

+ Here is the call graph for this function:

Gnuplot2dDataset NodeStatistics::GetBusyDatafile ( )

Definition at line 291 of file power-adaptation-interference.cc.

double NodeStatistics::GetBusyTime ( )

Definition at line 309 of file power-adaptation-interference.cc.

Time NodeStatistics::GetCalcTxTime ( DataRate  rate)
private
Time NodeStatistics::GetCalcTxTime ( DataRate  rate)
private

Definition at line 180 of file power-adaptation-distance.cc.

References NS_ASSERT, and ns3::Seconds().

+ Here is the call graph for this function:

Gnuplot2dDataset NodeStatistics::GetDatafile ( )
Gnuplot2dDataset NodeStatistics::GetDatafile ( )
Gnuplot2dDataset NodeStatistics::GetDatafile ( )

Definition at line 257 of file power-adaptation-distance.cc.

Gnuplot2dDataset NodeStatistics::GetIdleDatafile ( )

Definition at line 285 of file power-adaptation-interference.cc.

Vector NodeStatistics::GetPosition ( Ptr< Node node)
Vector NodeStatistics::GetPosition ( Ptr< Node node)

Definition at line 233 of file power-adaptation-distance.cc.

References ns3::Object::GetObject(), ns3::MobilityModel::GetPosition(), and third::mobility.

+ Here is the call graph for this function:

Gnuplot2dDataset NodeStatistics::GetPowerDatafile ( )
Gnuplot2dDataset NodeStatistics::GetPowerDatafile ( )

Definition at line 263 of file power-adaptation-distance.cc.

Gnuplot2dDataset NodeStatistics::GetRxDatafile ( )

Definition at line 297 of file power-adaptation-interference.cc.

Gnuplot2dDataset NodeStatistics::GetTxDatafile ( )

Definition at line 303 of file power-adaptation-interference.cc.

void NodeStatistics::PhyCallback ( std::string  path,
Ptr< const Packet packet 
)
void NodeStatistics::PhyCallback ( std::string  path,
Ptr< const Packet packet 
)

Definition at line 194 of file power-adaptation-distance.cc.

References ns3::WifiMacHeader::GetAddr1(), ns3::WifiMacHeader::GetType(), ns3::Packet::PeekHeader(), and ns3::WIFI_MAC_DATA.

+ Here is the call graph for this function:

void NodeStatistics::PowerCallback ( std::string  path,
double  oldPower,
double  newPower,
Mac48Address  dest 
)
void NodeStatistics::PowerCallback ( std::string  path,
double  oldPower,
double  newPower,
Mac48Address  dest 
)

Definition at line 208 of file power-adaptation-distance.cc.

void NodeStatistics::RateCallback ( std::string  path,
DataRate  oldRate,
DataRate  newRate,
Mac48Address  dest 
)
void NodeStatistics::RateCallback ( std::string  path,
DataRate  oldRate,
DataRate  newRate,
Mac48Address  dest 
)

Definition at line 214 of file power-adaptation-distance.cc.

void NodeStatistics::RxCallback ( std::string  path,
Ptr< const Packet packet,
const Address from 
)
void NodeStatistics::RxCallback ( std::string  path,
Ptr< const Packet packet,
const Address from 
)
void NodeStatistics::RxCallback ( std::string  path,
Ptr< const Packet packet,
const Address from 
)

Definition at line 220 of file power-adaptation-distance.cc.

References ns3::Packet::GetSize().

+ Here is the call graph for this function:

void NodeStatistics::SetPosition ( Ptr< Node node,
Vector  position 
)
void NodeStatistics::SetPosition ( Ptr< Node node,
Vector  position 
)

Definition at line 226 of file power-adaptation-distance.cc.

References ns3::Object::GetObject(), third::mobility, and ns3::MobilityModel::SetPosition().

+ Here is the call graph for this function:

void NodeStatistics::SetupPhy ( Ptr< WifiPhy phy)
private
void NodeStatistics::StateCallback ( std::string  path,
Time  init,
Time  duration,
WifiPhyState  state 
)

Definition at line 219 of file power-adaptation-interference.cc.

References CCA_BUSY, ns3::Time::GetSeconds(), IDLE, RX, and TX.

+ Here is the call graph for this function:

Member Data Documentation

double NodeStatistics::busyTime
private

Definition at line 106 of file power-adaptation-interference.cc.

std::map< Mac48Address, double > NodeStatistics::currentPower
private

Definition at line 125 of file power-adaptation-distance.cc.

std::map< Mac48Address, DataRate > NodeStatistics::currentRate
private

Definition at line 126 of file power-adaptation-distance.cc.

double NodeStatistics::idleTime
private

Definition at line 107 of file power-adaptation-interference.cc.

uint32_t NodeStatistics::m_bytesTotal
private

Definition at line 127 of file power-adaptation-distance.cc.

Gnuplot2dDataset NodeStatistics::m_output
private

Definition at line 132 of file power-adaptation-distance.cc.

Gnuplot2dDataset NodeStatistics::m_output_busy
private

Definition at line 119 of file power-adaptation-interference.cc.

Gnuplot2dDataset NodeStatistics::m_output_idle
private

Definition at line 118 of file power-adaptation-interference.cc.

Gnuplot2dDataset NodeStatistics::m_output_power
private

Definition at line 133 of file power-adaptation-distance.cc.

Gnuplot2dDataset NodeStatistics::m_output_rx
private

Definition at line 120 of file power-adaptation-interference.cc.

Gnuplot2dDataset NodeStatistics::m_output_tx
private

Definition at line 121 of file power-adaptation-interference.cc.

Ptr< WifiPhy > NodeStatistics::myPhy
private

Definition at line 130 of file power-adaptation-distance.cc.

double NodeStatistics::rxTime
private

Definition at line 109 of file power-adaptation-interference.cc.

TxTime NodeStatistics::timeTable
private

Definition at line 131 of file power-adaptation-distance.cc.

double NodeStatistics::totalBusyTime
private

Definition at line 110 of file power-adaptation-interference.cc.

double NodeStatistics::totalEnergy
private

Definition at line 128 of file power-adaptation-distance.cc.

double NodeStatistics::totalIdleTime
private

Definition at line 111 of file power-adaptation-interference.cc.

double NodeStatistics::totalRxTime
private

Definition at line 113 of file power-adaptation-interference.cc.

double NodeStatistics::totalTime
private

Definition at line 129 of file power-adaptation-distance.cc.

double NodeStatistics::totalTxTime
private

Definition at line 112 of file power-adaptation-interference.cc.

double NodeStatistics::txTime
private

Definition at line 108 of file power-adaptation-interference.cc.


The documentation for this class was generated from the following files: