Index: examples/wireless/rate-adaptation-distance.cc |
=================================================================== |
--- a/examples/wireless/rate-adaptation-distance.cc |
+++ b/examples/wireless/rate-adaptation-distance.cc |
@@ -65,20 +65,55 @@ |
class NodeStatistics |
{ |
public: |
+ /** |
+ * Constructor |
+ * \param aps the collection of APs |
+ * \param stas the collection of STAs |
+ */ |
NodeStatistics (NetDeviceContainer aps, NetDeviceContainer stas); |
+ /** |
+ * Check statistics function |
+ * \param time the tiame to get statistics |
+ */ |
void CheckStatistics (double time); |
+ /** |
+ * Receive callback function |
+ * \param path the path name |
+ * \param packet the packet |
+ * \param from the from address |
+ */ |
void RxCallback (std::string path, Ptr<const Packet> packet, const Address &from); |
+ /** |
+ * Set positionfunction |
+ * \param node the node |
+ * \param position the position vector |
+ */ |
void SetPosition (Ptr<Node> node, Vector position); |
+ /** |
+ * Advance position function |
+ * \param node the node |
+ * \param stepsSize the steps size |
+ * \param stepsTime the steps time |
+ */ |
void AdvancePosition (Ptr<Node> node, int stepsSize, int stepsTime); |
+ /** |
+ * Get position function |
+ * \param node the node |
+ * \returns the postition vector |
+ */ |
Vector GetPosition (Ptr<Node> node); |
+ /** |
+ * Get data file function |
+ * \returns the dataset |
+ */ |
Gnuplot2dDataset GetDatafile (); |
private: |
- uint32_t m_bytesTotal; |
- Gnuplot2dDataset m_output; |
+ uint32_t m_bytesTotal; ///< total bytes received |
+ Gnuplot2dDataset m_output; ///< output data set |
}; |
NodeStatistics::NodeStatistics (NetDeviceContainer aps, NetDeviceContainer stas) |