Class to collect node statistics. More...
| Public Member Functions | |
| NodeStatistics (NetDeviceContainer aps, NetDeviceContainer stas) | |
| Constructor. | |
| NodeStatistics (NetDeviceContainer aps, NetDeviceContainer stas) | |
| Constructor. | |
| NodeStatistics (NetDeviceContainer aps, NetDeviceContainer stas) | |
| Constructor. | |
| void | AdvancePosition (Ptr< Node > node, int stepsSize, int stepsTime) | 
| Advance node position. | |
| void | AdvancePosition (Ptr< Node > node, int stepsSize, Time stepsTime) | 
| Move a node. | |
| void | CheckStatistics (double time) | 
| Collects the statistics at a given time. | |
| Gnuplot2dDataset | GetBusyDatafile () | 
| Get the BUSY state output data. | |
| double | GetBusyTime () const | 
| Get the Busy time. | |
| Gnuplot2dDataset | GetDatafile () | 
| Get the Throughput output data. | |
| Gnuplot2dDataset | GetDatafile () | 
| Get the Throughput output data. | |
| Gnuplot2dDataset | GetDatafile () | 
| Gnuplot2dDataset | GetIdleDatafile () | 
| Get the IDLE state output data. | |
| Vector | GetPosition (Ptr< Node > node) | 
| Get the Position of a node. | |
| Vector | GetPosition (Ptr< Node > node) | 
| Get node position. | |
| Gnuplot2dDataset | GetPowerDatafile () | 
| Get the Power output data. | |
| Gnuplot2dDataset | GetPowerDatafile () | 
| Get the Power output data. | |
| Gnuplot2dDataset | GetRxDatafile () | 
| Get the RX state output data. | |
| Gnuplot2dDataset | GetTxDatafile () | 
| Get the TX state output data. | |
| void | PhyCallback (std::string path, Ptr< const Packet > packet, double powerW) | 
| Callback called by WifiNetDevice/Phy/PhyTxBegin. | |
| void | PhyCallback (std::string path, Ptr< const Packet > packet, double powerW) | 
| Callback called by WifiNetDevice/Phy/PhyTxBegin. | |
| void | PowerCallback (std::string path, double oldPower, double newPower, Mac48Address dest) | 
| Callback called by WifiNetDevice/RemoteStationManager/x/PowerChange. | |
| void | PowerCallback (std::string path, double oldPower, double newPower, Mac48Address dest) | 
| Callback called by WifiNetDevice/RemoteStationManager/x/PowerChange. | |
| void | RateCallback (std::string path, DataRate oldRate, DataRate newRate, Mac48Address dest) | 
| Callback called by WifiNetDevice/RemoteStationManager/x/RateChange. | |
| void | RateCallback (std::string path, DataRate oldRate, DataRate newRate, Mac48Address dest) | 
| Callback called by WifiNetDevice/RemoteStationManager/x/RateChange. | |
| void | RxCallback (std::string path, Ptr< const Packet > packet, const Address &from) | 
| Callback called by PacketSink/Rx. | |
| void | RxCallback (std::string path, Ptr< const Packet > packet, const Address &from) | 
| Callback called by PacketSink/Rx. | |
| void | RxCallback (std::string path, Ptr< const Packet > packet, const Address &from) | 
| RX callback. | |
| void | SetPosition (Ptr< Node > node, Vector position) | 
| Set the Position of a node. | |
| void | SetPosition (Ptr< Node > node, Vector position) | 
| Set node position. | |
| void | StateCallback (std::string path, Time init, Time duration, WifiPhyState state) | 
| Callback called by YansWifiPhy/State/State. | |
| Private Types | |
| typedef std::vector< std::pair< Time, DataRate > > | TxTime | 
| Time, DataRate pair vector. | |
| typedef std::vector< std::pair< Time, DataRate > > | TxTime | 
| Time, DataRate pair vector. | |
| Private Member Functions | |
| Time | GetCalcTxTime (DataRate rate) | 
| Get the time at which a given datarate has been recorded. | |
| Time | GetCalcTxTime (DataRate rate) | 
| Get the time at which a given datarate has been recorded. | |
| void | SetupPhy (Ptr< WifiPhy > phy) | 
| Setup the WifiPhy object. | |
| void | SetupPhy (Ptr< WifiPhy > phy) | 
| Setup the WifiPhy object. | |
| Private Attributes | |
| double | busyTime | 
| BUSY time. | |
| double | idleTime | 
| IDLE time. | |
| uint32_t | m_bytesTotal | 
| Number of received bytes on a given state. | |
| std::map< Mac48Address, dBm_u > | m_currentPower | 
| Current Tx power for each sender. | |
| std::map< Mac48Address, DataRate > | m_currentRate | 
| Current Tx rate for each sender. | |
| Gnuplot2dDataset | m_output | 
| Throughput output data. | |
| Gnuplot2dDataset | m_output_busy | 
| BUSY output data. | |
| Gnuplot2dDataset | m_output_idle | 
| IDLE output data. | |
| Gnuplot2dDataset | m_output_power | 
| Power output data. | |
| Gnuplot2dDataset | m_output_rx | 
| RX output data. | |
| Gnuplot2dDataset | m_output_tx | 
| TX output data. | |
| TxTime | m_timeTable | 
| Time, DataRate table. | |
| double | m_totalBusyTime | 
| Total time in BUSY state. | |
| double | m_totalEnergy | 
| Energy used on a given state. | |
| double | m_totalIdleTime | 
| Total time in IDLE state. | |
| double | m_totalRxTime | 
| Total time in RX state. | |
| double | m_totalTime | 
| Time spent on a given state. | |
| double | m_totalTxTime | 
| Total time in TX state. | |
| double | rxTime | 
| RX time. | |
| double | txTime | 
| TX time. | |
Class to collect node statistics.
Node statistics.
Definition at line 101 of file wifi-power-adaptation-distance.cc.
| 
 | private | 
Definition at line 183 of file wifi-power-adaptation-distance.cc.
| 
 | private | 
Definition at line 181 of file wifi-power-adaptation-interference.cc.
| NodeStatistics::NodeStatistics | ( | NetDeviceContainer | aps, | 
| NetDeviceContainer | stas ) | 
Constructor.
| aps | Access points | 
| stas | WiFi Stations. | 
Definition at line 208 of file wifi-power-adaptation-distance.cc.
References m_output, and m_output_power.
| NodeStatistics::NodeStatistics | ( | NetDeviceContainer | aps, | 
| NetDeviceContainer | stas ) | 
Constructor.
| aps | Access points | 
| stas | WiFi Stations. | 
| NodeStatistics::NodeStatistics | ( | NetDeviceContainer | aps, | 
| NetDeviceContainer | stas ) | 
Constructor.
| aps | AP devices | 
| stas | STA devices | 
Advance node position.
| node | the node | 
| stepsSize | the size of a step | 
| stepsTime | the time interval between steps | 
Definition at line 140 of file wifi-rate-adaptation-distance.cc.
References AdvancePosition(), GetPosition(), m_bytesTotal, m_output, ns3::Simulator::Schedule(), ns3::Seconds(), and SetPosition().
Move a node.
| node | The node. | 
| stepsSize | The step size. | 
| stepsTime | Time on each step. | 
Definition at line 313 of file wifi-power-adaptation-distance.cc.
Referenced by AdvancePosition().
| void NodeStatistics::CheckStatistics | ( | double | time | ) | 
Collects the statistics at a given time.
| time | Time at which the statistics are collected. | 
Definition at line 345 of file wifi-power-adaptation-interference.cc.
References m_bytesTotal.
| Gnuplot2dDataset NodeStatistics::GetBusyDatafile | ( | ) | 
Get the BUSY state output data.
Definition at line 386 of file wifi-power-adaptation-interference.cc.
References m_output_idle.
| double NodeStatistics::GetBusyTime | ( | ) | const | 
Get the Busy time.
Definition at line 404 of file wifi-power-adaptation-interference.cc.
References m_output_tx.
Get the time at which a given datarate has been recorded.
| rate | The datarate to search. | 
Definition at line 249 of file wifi-power-adaptation-distance.cc.
Get the time at which a given datarate has been recorded.
| rate | The datarate to search. | 
References m_currentPower.
| Gnuplot2dDataset NodeStatistics::GetDatafile | ( | ) | 
Get the Throughput output data.
Definition at line 336 of file wifi-power-adaptation-distance.cc.
| Gnuplot2dDataset NodeStatistics::GetDatafile | ( | ) | 
Get the Throughput output data.
| Gnuplot2dDataset NodeStatistics::GetDatafile | ( | ) | 
References m_bytesTotal, and m_output.
| Gnuplot2dDataset NodeStatistics::GetIdleDatafile | ( | ) | 
Get the IDLE state output data.
Definition at line 380 of file wifi-power-adaptation-interference.cc.
References m_output_power.
Get the Position of a node.
| node | The node. | 
Definition at line 306 of file wifi-power-adaptation-distance.cc.
Referenced by AdvancePosition().
Get node position.
| node | the node | 
| Gnuplot2dDataset NodeStatistics::GetPowerDatafile | ( | ) | 
Get the Power output data.
Definition at line 342 of file wifi-power-adaptation-distance.cc.
References m_output.
| Gnuplot2dDataset NodeStatistics::GetPowerDatafile | ( | ) | 
Get the Power output data.
| Gnuplot2dDataset NodeStatistics::GetRxDatafile | ( | ) | 
Get the RX state output data.
Definition at line 392 of file wifi-power-adaptation-interference.cc.
References m_output_busy.
| Gnuplot2dDataset NodeStatistics::GetTxDatafile | ( | ) | 
Get the TX state output data.
Definition at line 398 of file wifi-power-adaptation-interference.cc.
References m_output_rx.
Callback called by WifiNetDevice/Phy/PhyTxBegin.
| path | The trace path. | 
| packet | The sent packet. | 
| powerW | The Tx power. | 
Definition at line 263 of file wifi-power-adaptation-distance.cc.
Callback called by WifiNetDevice/Phy/PhyTxBegin.
| path | The trace path. | 
| packet | The sent packet. | 
| powerW | The Tx power. | 
| void NodeStatistics::PowerCallback | ( | std::string | path, | 
| double | oldPower, | ||
| double | newPower, | ||
| Mac48Address | dest ) | 
Callback called by WifiNetDevice/RemoteStationManager/x/PowerChange.
| path | The trace path. | 
| oldPower | Old Tx power. | 
| newPower | Actual Tx power. | 
| dest | Destination of the transmission. | 
Definition at line 278 of file wifi-power-adaptation-distance.cc.
| void NodeStatistics::PowerCallback | ( | std::string | path, | 
| double | oldPower, | ||
| double | newPower, | ||
| Mac48Address | dest ) | 
Callback called by WifiNetDevice/RemoteStationManager/x/PowerChange.
| path | The trace path. | 
| oldPower | Old Tx power. | 
| newPower | Actual Tx power. | 
| dest | Destination of the transmission. | 
| void NodeStatistics::RateCallback | ( | std::string | path, | 
| DataRate | oldRate, | ||
| DataRate | newRate, | ||
| Mac48Address | dest ) | 
Callback called by WifiNetDevice/RemoteStationManager/x/RateChange.
| path | The trace path. | 
| oldRate | Old rate. | 
| newRate | Actual rate. | 
| dest | Destination of the transmission. | 
Definition at line 284 of file wifi-power-adaptation-distance.cc.
References m_currentPower.
| void NodeStatistics::RateCallback | ( | std::string | path, | 
| DataRate | oldRate, | ||
| DataRate | newRate, | ||
| Mac48Address | dest ) | 
Callback called by WifiNetDevice/RemoteStationManager/x/RateChange.
| path | The trace path. | 
| oldRate | Old rate. | 
| newRate | Actual rate. | 
| dest | Destination of the transmission. | 
| void NodeStatistics::RxCallback | ( | std::string | path, | 
| Ptr< const Packet > | packet, | ||
| const Address & | from ) | 
Callback called by PacketSink/Rx.
| path | The trace path. | 
| packet | The received packet. | 
| from | The sender address. | 
Definition at line 293 of file wifi-power-adaptation-distance.cc.
References m_currentRate.
| void NodeStatistics::RxCallback | ( | std::string | path, | 
| Ptr< const Packet > | packet, | ||
| const Address & | from ) | 
Callback called by PacketSink/Rx.
| path | The trace path. | 
| packet | The received packet. | 
| from | The sender address. | 
| void NodeStatistics::RxCallback | ( | std::string | path, | 
| Ptr< const Packet > | packet, | ||
| const Address & | from ) | 
RX callback.
| path | path | 
| packet | received packet | 
| from | sender | 
Set the Position of a node.
| node | The node. | 
| position | The position. | 
Definition at line 299 of file wifi-power-adaptation-distance.cc.
References m_bytesTotal.
Referenced by AdvancePosition().
Set node position.
| node | the node | 
| position | the position | 
Setup the WifiPhy object.
| phy | The WifiPhy to setup. | 
Definition at line 233 of file wifi-power-adaptation-distance.cc.
References m_output_power.
| void NodeStatistics::StateCallback | ( | std::string | path, | 
| Time | init, | ||
| Time | duration, | ||
| WifiPhyState | state ) | 
Callback called by YansWifiPhy/State/State.
| path | The trace path. | 
| init | Time when the state started. | 
| duration | Amount of time we've been in (or will be in) the state. | 
| state | The state. | 
Definition at line 314 of file wifi-power-adaptation-interference.cc.
References m_currentRate.
| 
 | private | 
BUSY time.
Definition at line 201 of file wifi-power-adaptation-interference.cc.
| 
 | private | 
IDLE time.
Definition at line 202 of file wifi-power-adaptation-interference.cc.
| 
 | private | 
Number of received bytes on a given state.
total bytes
Number of received bytes.
Definition at line 200 of file wifi-power-adaptation-distance.cc.
Referenced by AdvancePosition(), CheckStatistics(), GetDatafile(), and SetPosition().
| 
 | private | 
Current Tx power for each sender.
Definition at line 198 of file wifi-power-adaptation-distance.cc.
Referenced by GetCalcTxTime(), and RateCallback().
| 
 | private | 
Current Tx rate for each sender.
Definition at line 199 of file wifi-power-adaptation-distance.cc.
Referenced by RxCallback(), and StateCallback().
| 
 | private | 
Throughput output data.
gnuplot 2d dataset
Definition at line 204 of file wifi-power-adaptation-distance.cc.
Referenced by NodeStatistics(), AdvancePosition(), GetDatafile(), and GetPowerDatafile().
| 
 | private | 
BUSY output data.
Definition at line 213 of file wifi-power-adaptation-interference.cc.
Referenced by GetRxDatafile().
| 
 | private | 
IDLE output data.
Definition at line 212 of file wifi-power-adaptation-interference.cc.
Referenced by GetBusyDatafile().
| 
 | private | 
Power output data.
Definition at line 205 of file wifi-power-adaptation-distance.cc.
Referenced by NodeStatistics(), GetIdleDatafile(), and SetupPhy().
| 
 | private | 
RX output data.
Definition at line 214 of file wifi-power-adaptation-interference.cc.
Referenced by GetTxDatafile().
| 
 | private | 
TX output data.
Definition at line 215 of file wifi-power-adaptation-interference.cc.
Referenced by GetBusyTime().
| 
 | private | 
Definition at line 203 of file wifi-power-adaptation-distance.cc.
| 
 | private | 
Total time in BUSY state.
Definition at line 205 of file wifi-power-adaptation-interference.cc.
| 
 | private | 
Energy used on a given state.
Energy used.
Definition at line 201 of file wifi-power-adaptation-distance.cc.
| 
 | private | 
Total time in IDLE state.
Definition at line 206 of file wifi-power-adaptation-interference.cc.
| 
 | private | 
Total time in RX state.
Definition at line 208 of file wifi-power-adaptation-interference.cc.
| 
 | private | 
Time spent on a given state.
Time spent.
Definition at line 202 of file wifi-power-adaptation-distance.cc.
| 
 | private | 
Total time in TX state.
Definition at line 207 of file wifi-power-adaptation-interference.cc.
| 
 | private | 
RX time.
Definition at line 204 of file wifi-power-adaptation-interference.cc.
| 
 | private | 
TX time.
Definition at line 203 of file wifi-power-adaptation-interference.cc.