Index: ns-3.13/src/wifi/model/yans-wifi-phy.h |
diff --git a/ns-3.13/src/wifi/model/yans-wifi-phy.h b/ns-3.13/src/wifi/model/yans-wifi-phy.h |
index 814e977c39a5f0a4a02bd809ddcce6f8318464bb..b4cb22f1e6861fe2eb4f6128bacda29f766018f5 100644 |
--- a/ns-3.13/src/wifi/model/yans-wifi-phy.h |
+++ b/ns-3.13/src/wifi/model/yans-wifi-phy.h |
@@ -36,6 +36,8 @@ |
#include "wifi-phy-standard.h" |
#include "interference-helper.h" |
+#include "ns3/error-model.h" |
+ |
namespace ns3 { |
@@ -105,6 +107,9 @@ public: |
void SetEdThreshold (double threshold); |
void SetCcaMode1Threshold (double threshold); |
void SetErrorRateModel (Ptr<ErrorRateModel> rate); |
+ |
+ void SetErrorModel (Ptr<ErrorModel> errorModel); |
+ |
void SetDevice (Ptr<Object> device); |
void SetMobility (Ptr<Object> mobility); |
double GetRxNoiseFigure (void) const; |
@@ -113,6 +118,7 @@ public: |
double GetEdThreshold (void) const; |
double GetCcaMode1Threshold (void) const; |
Ptr<ErrorRateModel> GetErrorRateModel (void) const; |
+ Ptr<ErrorModel> GetErrorModel (void) const; |
Ptr<Object> GetDevice (void) const; |
Ptr<Object> GetMobility (void); |
@@ -220,6 +226,10 @@ private: |
InterferenceHelper m_interference; |
Time m_channelSwitchDelay; |
+ UniformVariable m_ranvar; |
+ Ptr<ErrorModel> m_errorModel; |
+ |
+ |
}; |
} // namespace ns3 |