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, WifiMode > | actualMode |
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< WifiPhy > | myPhy |
double | rxTime |
TxTime | timeTable |
double | totalBusyTime |
double | totalEnergy |
double | totalIdleTime |
double | totalRxTime |
double | totalTime |
double | totalTxTime |
double | txTime |
Definition at line 109 of file power-adaptation-distance.cc.
|
private |
Definition at line 101 of file power-adaptation-interference.cc.
|
private |
Definition at line 128 of file power-adaptation-distance.cc.
NodeStatistics::NodeStatistics | ( | NetDeviceContainer | aps, |
NetDeviceContainer | stas | ||
) |
Definition at line 143 of file power-adaptation-distance.cc.
References ns3::NetDeviceContainer::Get(), ns3::WifiNetDevice::GetMac(), ns3::NetDeviceContainer::GetN(), and ns3::WifiNetDevice::GetPhy().
NodeStatistics::NodeStatistics | ( | NetDeviceContainer | aps, |
NetDeviceContainer | stas | ||
) |
NodeStatistics::NodeStatistics | ( | NetDeviceContainer | aps, |
NetDeviceContainer | stas | ||
) |
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().
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.
Definition at line 180 of file power-adaptation-distance.cc.
References NS_ASSERT, and ns3::Seconds().
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.
Definition at line 250 of file power-adaptation-distance.cc.
References ns3::Object::GetObject(), and ns3::MobilityModel::GetPosition().
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.
Definition at line 194 of file power-adaptation-distance.cc.
References ns3::WifiMacHeader::GetAddr1(), and ns3::Packet::PeekHeader().
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().
Definition at line 243 of file power-adaptation-distance.cc.
References ns3::Object::GetObject(), and ns3::MobilityModel::SetPosition().
Definition at line 167 of file power-adaptation-distance.cc.
References ns3::WifiPhy::CalculateTxDuration(), ns3::WifiPhy::GetFrequency(), ns3::WifiPhy::GetMode(), ns3::WifiPhy::GetNModes(), packetSize, ns3::WifiTxVector::SetMode(), and ns3::WIFI_PREAMBLE_LONG.
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.
|
private |
Definition at line 133 of file power-adaptation-distance.cc.
|
private |
Definition at line 132 of file power-adaptation-distance.cc.
|
private |
Definition at line 110 of file power-adaptation-interference.cc.
|
private |
Definition at line 111 of file power-adaptation-interference.cc.
|
private |
Definition at line 134 of file power-adaptation-distance.cc.
|
private |
Definition at line 139 of file power-adaptation-distance.cc.
|
private |
Definition at line 123 of file power-adaptation-interference.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 124 of file power-adaptation-interference.cc.
|
private |
Definition at line 125 of file power-adaptation-interference.cc.
Definition at line 137 of file power-adaptation-distance.cc.
|
private |
Definition at line 113 of file power-adaptation-interference.cc.
|
private |
Definition at line 138 of file power-adaptation-distance.cc.
|
private |
Definition at line 114 of file power-adaptation-interference.cc.
|
private |
Definition at line 135 of file power-adaptation-distance.cc.
|
private |
Definition at line 115 of file power-adaptation-interference.cc.
|
private |
Definition at line 117 of file power-adaptation-interference.cc.
|
private |
Definition at line 136 of file power-adaptation-distance.cc.
|
private |
Definition at line 116 of file power-adaptation-interference.cc.
|
private |
Definition at line 112 of file power-adaptation-interference.cc.