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, DataRate > | currentRate |
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< WifiPhy > | myPhy |
double | rxTime |
TxTime | timeTable |
double | totalBusyTime |
double | totalEnergy |
double | totalIdleTime |
double | totalRxTime |
double | totalTime |
double | totalTxTime |
double | txTime |
Definition at line 115 of file power-adaptation-distance.cc.
|
private |
Definition at line 109 of file power-adaptation-interference.cc.
|
private |
Definition at line 133 of file power-adaptation-distance.cc.
NodeStatistics::NodeStatistics | ( | NetDeviceContainer | aps, |
NetDeviceContainer | stas | ||
) |
Definition at line 148 of file power-adaptation-distance.cc.
References ns3::NetDeviceContainer::Get(), ns3::WifiNetDevice::GetMac(), ns3::NetDeviceContainer::GetN(), ns3::WifiNetDevice::GetPhy(), and third::phy.
NodeStatistics::NodeStatistics | ( | NetDeviceContainer | aps, |
NetDeviceContainer | stas | ||
) |
NodeStatistics::NodeStatistics | ( | NetDeviceContainer | aps, |
NetDeviceContainer | stas | ||
) |
Definition at line 252 of file power-adaptation-distance.cc.
References GetPosition(), ns3::Simulator::Now(), NS_LOG_INFO, ns3::Simulator::Schedule(), ns3::Seconds(), and SetPosition().
void NodeStatistics::CheckStatistics | ( | double | time | ) |
void NodeStatistics::CheckStatistics | ( | double | time | ) |
Definition at line 262 of file power-adaptation-interference.cc.
References ns3::Simulator::Now(), ns3::Simulator::Schedule(), and ns3::Seconds().
Gnuplot2dDataset NodeStatistics::GetBusyDatafile | ( | ) |
Definition at line 303 of file power-adaptation-interference.cc.
double NodeStatistics::GetBusyTime | ( | ) |
Definition at line 321 of file power-adaptation-interference.cc.
Definition at line 192 of file power-adaptation-distance.cc.
References NS_ASSERT, and ns3::Seconds().
Gnuplot2dDataset NodeStatistics::GetDatafile | ( | ) |
Gnuplot2dDataset NodeStatistics::GetDatafile | ( | ) |
Gnuplot2dDataset NodeStatistics::GetDatafile | ( | ) |
Definition at line 269 of file power-adaptation-distance.cc.
Gnuplot2dDataset NodeStatistics::GetIdleDatafile | ( | ) |
Definition at line 297 of file power-adaptation-interference.cc.
Definition at line 245 of file power-adaptation-distance.cc.
References ns3::Object::GetObject(), and third::mobility.
Gnuplot2dDataset NodeStatistics::GetPowerDatafile | ( | ) |
Gnuplot2dDataset NodeStatistics::GetPowerDatafile | ( | ) |
Definition at line 275 of file power-adaptation-distance.cc.
Gnuplot2dDataset NodeStatistics::GetRxDatafile | ( | ) |
Definition at line 309 of file power-adaptation-interference.cc.
Gnuplot2dDataset NodeStatistics::GetTxDatafile | ( | ) |
Definition at line 315 of file power-adaptation-interference.cc.
Definition at line 206 of file power-adaptation-distance.cc.
References ns3::WifiMacHeader::GetAddr1(), ns3::WifiMacHeader::GetType(), ns3::Packet::PeekHeader(), and ns3::WIFI_MAC_DATA.
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 220 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 226 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 232 of file power-adaptation-distance.cc.
References ns3::Packet::GetSize().
Definition at line 238 of file power-adaptation-distance.cc.
References ns3::Object::GetObject(), and third::mobility.
Definition at line 174 of file power-adaptation-distance.cc.
References ns3::WifiMode::GetDataRate(), ns3::Time::GetSeconds(), NS_LOG_DEBUG, packetSize, third::phy, ns3::WifiTxVector::SetChannelWidth(), ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetPreambleType(), and ns3::WIFI_PREAMBLE_LONG.
void NodeStatistics::StateCallback | ( | std::string | path, |
Time | init, | ||
Time | duration, | ||
WifiPhyState | state | ||
) |
Definition at line 231 of file power-adaptation-interference.cc.
References CCA_BUSY, ns3::Time::GetSeconds(), IDLE, RX, and TX.
|
private |
Definition at line 118 of file power-adaptation-interference.cc.
|
private |
Definition at line 137 of file power-adaptation-distance.cc.
|
private |
Definition at line 138 of file power-adaptation-distance.cc.
|
private |
Definition at line 119 of file power-adaptation-interference.cc.
|
private |
Definition at line 139 of file power-adaptation-distance.cc.
|
private |
Definition at line 144 of file power-adaptation-distance.cc.
|
private |
Definition at line 131 of file power-adaptation-interference.cc.
|
private |
Definition at line 130 of file power-adaptation-interference.cc.
|
private |
Definition at line 145 of file power-adaptation-distance.cc.
|
private |
Definition at line 132 of file power-adaptation-interference.cc.
|
private |
Definition at line 133 of file power-adaptation-interference.cc.
Definition at line 142 of file power-adaptation-distance.cc.
|
private |
Definition at line 121 of file power-adaptation-interference.cc.
|
private |
Definition at line 143 of file power-adaptation-distance.cc.
|
private |
Definition at line 122 of file power-adaptation-interference.cc.
|
private |
Definition at line 140 of file power-adaptation-distance.cc.
|
private |
Definition at line 123 of file power-adaptation-interference.cc.
|
private |
Definition at line 125 of file power-adaptation-interference.cc.
|
private |
Definition at line 141 of file power-adaptation-distance.cc.
|
private |
Definition at line 124 of file power-adaptation-interference.cc.
|
private |
Definition at line 120 of file power-adaptation-interference.cc.