add missing method implementations
authormlacage@thira.inria.fr
Tue, 13 Nov 2007 17:26:24 +0100
changeset 2096 4e282663666c
parent 2095 f6ec39e97e4b
child 2097 dc2ee3f4e46b
add missing method implementations
src/devices/wifi/dcf-manager.cc
src/devices/wifi/dcf-manager.h
--- a/src/devices/wifi/dcf-manager.cc	Tue Nov 13 16:32:39 2007 +0100
+++ b/src/devices/wifi/dcf-manager.cc	Tue Nov 13 17:26:24 2007 +0100
@@ -16,6 +16,9 @@
  *      Implement the DCF state holder
  ****************************************************************/
 
+DcfState::~DcfState ()
+{}
+
 void 
 DcfState::SetAifsn (uint32_t aifsn)
 {
@@ -84,6 +87,18 @@
  ****************************************************************/
 
 void 
+DcfManager::SetParameters (const MacParameters *parameters)
+{
+  m_parameters = parameters;
+}
+
+void 
+DcfManager::SetAckTxDuration (Time ackTxDuration)
+{
+  m_ackTxTime = ackTxDuration;
+}
+
+void 
 DcfManager::Add (DcfState *dcf)
 {
   m_states.push_back (dcf);
--- a/src/devices/wifi/dcf-manager.h	Tue Nov 13 16:32:39 2007 +0100
+++ b/src/devices/wifi/dcf-manager.h	Tue Nov 13 17:26:24 2007 +0100
@@ -44,6 +44,7 @@
 
 class DcfManager
 {
+public:
   void SetParameters (const MacParameters *parameters);
 
   // at the lowest mandatory rate.
@@ -133,7 +134,7 @@
   bool m_sleeping;
   Time m_ackTxTime;
   EventId m_accessTimeout;
-  MacParameters *m_parameters;
+  const MacParameters *m_parameters;
 };
 
 } // namespace ns3