Cleanup object registration for uan
This commit is contained in:
@@ -3131,7 +3131,7 @@ def register_functions(root_module):
|
||||
module.add_function('TypeNameGet',
|
||||
'std::string',
|
||||
[],
|
||||
template_parameters=['long long'])
|
||||
template_parameters=['long'])
|
||||
## type-name.h: extern std::string ns3::TypeNameGet() [free function]
|
||||
module.add_function('TypeNameGet',
|
||||
'std::string',
|
||||
|
||||
@@ -40,13 +40,12 @@
|
||||
NS_LOG_COMPONENT_DEFINE ("UanChannel");
|
||||
namespace ns3 {
|
||||
|
||||
NS_OBJECT_ENSURE_REGISTERED ( UanChannel);
|
||||
NS_OBJECT_ENSURE_REGISTERED (UanChannel);
|
||||
|
||||
TypeId
|
||||
UanChannel::GetTypeId ()
|
||||
{
|
||||
static TypeId tid =
|
||||
TypeId ("ns3::UanChannel")
|
||||
static TypeId tid = TypeId ("ns3::UanChannel")
|
||||
.SetParent<Channel> ()
|
||||
.AddConstructor<UanChannel> ()
|
||||
.AddAttribute ("PropagationModel",
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
NS_OBJECT_ENSURE_REGISTERED (UanHeaderCommon);
|
||||
|
||||
UanHeaderCommon::UanHeaderCommon ()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -25,6 +25,12 @@
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
NS_OBJECT_ENSURE_REGISTERED (UanHeaderRcData);
|
||||
NS_OBJECT_ENSURE_REGISTERED (UanHeaderRcRts);
|
||||
NS_OBJECT_ENSURE_REGISTERED (UanHeaderRcCtsGlobal);
|
||||
NS_OBJECT_ENSURE_REGISTERED (UanHeaderRcCts);
|
||||
NS_OBJECT_ENSURE_REGISTERED (UanHeaderRcAck);
|
||||
|
||||
UanHeaderRcData::UanHeaderRcData ()
|
||||
: Header (),
|
||||
m_frameNo (0),
|
||||
@@ -44,7 +50,6 @@ UanHeaderRcData::~UanHeaderRcData ()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
TypeId
|
||||
UanHeaderRcData::GetTypeId ()
|
||||
{
|
||||
|
||||
@@ -190,7 +190,7 @@ public:
|
||||
UanHeaderRcCtsGlobal (Time wt, Time ts, uint16_t rate, uint16_t retryRate);
|
||||
~UanHeaderRcCtsGlobal ();
|
||||
|
||||
static TypeId GetTypeId ();
|
||||
static TypeId GetTypeId (void);
|
||||
|
||||
/**
|
||||
* \param rate Rate number corresponding to data rate of current cycle
|
||||
|
||||
@@ -91,7 +91,7 @@ UanMacRcGw::DoDispose ()
|
||||
TypeId
|
||||
UanMacRcGw::GetTypeId (void)
|
||||
{
|
||||
TypeId tid = TypeId ("ns3::UanMacRcGw")
|
||||
static TypeId tid = TypeId ("ns3::UanMacRcGw")
|
||||
.SetParent<UanMac> ()
|
||||
.AddConstructor<UanMacRcGw> ()
|
||||
.AddAttribute ("MaxReservations",
|
||||
|
||||
@@ -190,7 +190,7 @@ UanMacRc::DoDispose ()
|
||||
TypeId
|
||||
UanMacRc::GetTypeId (void)
|
||||
{
|
||||
TypeId tid = TypeId ("ns3::UanMacRc")
|
||||
static TypeId tid = TypeId ("ns3::UanMacRc")
|
||||
.SetParent<UanMac> ()
|
||||
.AddConstructor<UanMacRc> ()
|
||||
.AddAttribute ("RetryRate",
|
||||
|
||||
@@ -251,8 +251,7 @@ UanPhyPerUmodem::~UanPhyPerUmodem ()
|
||||
|
||||
TypeId UanPhyPerUmodem::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid =
|
||||
TypeId ("ns3::UanPhyPerUmodem")
|
||||
static TypeId tid = TypeId ("ns3::UanPhyPerUmodem")
|
||||
.SetParent<Object> ()
|
||||
.AddConstructor<UanPhyPerUmodem> ()
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user