SetGroupName for csma module
This commit is contained in:
@@ -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> ();
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user