SetGroupName for csma module

This commit is contained in:
Tommaso Pecorella
2015-03-29 16:08:40 +02:00
parent d503c92234
commit 9377247c1f
3 changed files with 4 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ Backoff::Backoff ()
m_maxSlots = 1000;
m_ceiling = 10;
m_maxRetries = 1000;
m_numBackoffRetries = 0;
m_rng = CreateObject<UniformRandomVariable> ();
ResetBackoffTime ();
@@ -44,6 +45,7 @@ Backoff::Backoff(Time slotTime, uint32_t minSlots, uint32_t maxSlots, uint32_t c
m_maxSlots = maxSlots;
m_ceiling = ceiling;
m_maxRetries = maxRetries;
m_numBackoffRetries = 0;
m_rng = CreateObject<UniformRandomVariable> ();
}

View File

@@ -35,6 +35,7 @@ CsmaChannel::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::CsmaChannel")
.SetParent<Channel> ()
.SetGroupName ("Csma")
.AddConstructor<CsmaChannel> ()
.AddAttribute ("DataRate",
"The transmission data rate to be provided to devices connected to the channel",

View File

@@ -44,6 +44,7 @@ CsmaNetDevice::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::CsmaNetDevice")
.SetParent<NetDevice> ()
.SetGroupName ("Csma")
.AddConstructor<CsmaNetDevice> ()
.AddAttribute ("Address",
"The MAC address of this device.",