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)
 
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, uint8_t power, Mac48Address dest)
 
void PowerCallback (std::string path, uint8_t power, Mac48Address dest)
 
void RateCallback (std::string path, uint32_t rate, Mac48Address dest)
 
void RateCallback (std::string path, uint32_t rate, 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, enum WifiPhy::State state)
 

Private Types

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

Private Member Functions

Time GetCalcTxTime (WifiMode mode)
 
Time GetCalcTxTime (WifiMode mode)
 
void SetupPhy (Ptr< WifiPhy > phy)
 
void SetupPhy (Ptr< WifiPhy > phy)
 

Private Attributes

std::map< Mac48Address, WifiModeactualMode
 
std::map< Mac48Address, uint32_t > actualPower
 
double busyTime
 
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 109 of file power-adaptation-distance.cc.

Member Typedef Documentation

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

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

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

Definition at line 128 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 257 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)
void NodeStatistics::CheckStatistics ( double  time)

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

Gnuplot2dDataset NodeStatistics::GetBusyDatafile ( )

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

double NodeStatistics::GetBusyTime ( )

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

Time NodeStatistics::GetCalcTxTime ( WifiMode  mode)
private
Time NodeStatistics::GetCalcTxTime ( WifiMode  mode)
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 274 of file power-adaptation-distance.cc.

Gnuplot2dDataset NodeStatistics::GetIdleDatafile ( )

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

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

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

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

+ Here is the call graph for this function:

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

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

Gnuplot2dDataset NodeStatistics::GetRxDatafile ( )

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

Gnuplot2dDataset NodeStatistics::GetTxDatafile ( )

Definition at line 311 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(), and ns3::Packet::PeekHeader().

+ Here is the call graph for this function:

void NodeStatistics::PowerCallback ( std::string  path,
uint8_t  power,
Mac48Address  dest 
)
void NodeStatistics::PowerCallback ( std::string  path,
uint8_t  power,
Mac48Address  dest 
)

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

References NS_ASSERT_MSG.

void NodeStatistics::RateCallback ( std::string  path,
uint32_t  rate,
Mac48Address  dest 
)
void NodeStatistics::RateCallback ( std::string  path,
uint32_t  rate,
Mac48Address  dest 
)

Definition at line 225 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 231 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 243 of file power-adaptation-distance.cc.

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

+ Here is the call graph for this function:

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

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

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

+ Here is the call graph for this function:

Member Data Documentation

std::map< Mac48Address, WifiMode > NodeStatistics::actualMode
private

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

std::map< Mac48Address, uint32_t > NodeStatistics::actualPower
private

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

double NodeStatistics::busyTime
private

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

double NodeStatistics::idleTime
private

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

uint32_t NodeStatistics::m_bytesTotal
private

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

Gnuplot2dDataset NodeStatistics::m_output
private

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

Gnuplot2dDataset NodeStatistics::m_output_busy
private

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

Gnuplot2dDataset NodeStatistics::m_output_idle
private

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

Gnuplot2dDataset NodeStatistics::m_output_power
private

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

Gnuplot2dDataset NodeStatistics::m_output_rx
private

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

Gnuplot2dDataset NodeStatistics::m_output_tx
private

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

Ptr< WifiPhy > NodeStatistics::myPhy
private

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

double NodeStatistics::rxTime
private

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

TxTime NodeStatistics::timeTable
private

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

double NodeStatistics::totalBusyTime
private

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

double NodeStatistics::totalEnergy
private

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

double NodeStatistics::totalIdleTime
private

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

double NodeStatistics::totalRxTime
private

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

double NodeStatistics::totalTime
private

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

double NodeStatistics::totalTxTime
private

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

double NodeStatistics::txTime
private

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


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