use NS_DEPRECATED for bug 232.
This commit is contained in:
@@ -63,6 +63,17 @@ CsmaHelper::SetChannelAttribute (std::string n1, const AttributeValue &v1)
|
||||
m_channelFactory.Set (n1, v1);
|
||||
}
|
||||
|
||||
void
|
||||
CsmaHelper::SetDeviceParameter (std::string n1, const AttributeValue &v1)
|
||||
{
|
||||
SetDeviceAttribute (n1, v1);
|
||||
}
|
||||
void
|
||||
CsmaHelper::SetChannelParameter (std::string n1, const AttributeValue &v1)
|
||||
{
|
||||
SetChannelAttribute (n1, v1);
|
||||
}
|
||||
|
||||
void
|
||||
CsmaHelper::EnablePcap (std::string filename, uint32_t nodeid, uint32_t deviceid)
|
||||
{
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "ns3/net-device-container.h"
|
||||
#include "ns3/node-container.h"
|
||||
#include "ns3/csma-channel.h"
|
||||
#include "ns3/deprecated.h"
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
@@ -79,6 +80,9 @@ public:
|
||||
*/
|
||||
void SetChannelAttribute (std::string n1, const AttributeValue &v1);
|
||||
|
||||
void SetDeviceParameter (std::string n1, const AttributeValue &v1) NS_DEPRECATED;
|
||||
void SetChannelParameter (std::string n1, const AttributeValue &v1) NS_DEPRECATED;
|
||||
|
||||
/**
|
||||
* \param filename filename prefix to use for pcap files.
|
||||
* \param nodeid the id of the node to generate pcap output for.
|
||||
|
||||
@@ -63,6 +63,17 @@ PointToPointHelper::SetChannelAttribute (std::string n1, const AttributeValue &v
|
||||
m_channelFactory.Set (n1, v1);
|
||||
}
|
||||
|
||||
void
|
||||
PointToPointHelper::SetDeviceParameter (std::string name, const AttributeValue &value)
|
||||
{
|
||||
SetDeviceAttribute (name, value);
|
||||
}
|
||||
void
|
||||
PointToPointHelper::SetChannelParameter (std::string name, const AttributeValue &value)
|
||||
{
|
||||
SetChannelAttribute (name, value);
|
||||
}
|
||||
|
||||
void
|
||||
PointToPointHelper::EnablePcap (std::string filename, uint32_t nodeid, uint32_t deviceid)
|
||||
{
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "ns3/object-factory.h"
|
||||
#include "ns3/net-device-container.h"
|
||||
#include "ns3/node-container.h"
|
||||
#include "ns3/deprecated.h"
|
||||
#include <string>
|
||||
|
||||
namespace ns3 {
|
||||
@@ -78,6 +79,9 @@ public:
|
||||
*/
|
||||
void SetChannelAttribute (std::string name, const AttributeValue &value);
|
||||
|
||||
void SetDeviceParameter (std::string name, const AttributeValue &value) NS_DEPRECATED;
|
||||
void SetChannelParameter (std::string name, const AttributeValue &value) NS_DEPRECATED;
|
||||
|
||||
/**
|
||||
* \param filename filename prefix to use for pcap files.
|
||||
* \param nodeid the id of the node to generate pcap output for.
|
||||
|
||||
Reference in New Issue
Block a user