Rename attributes to remove spaces
Such attribute names are no longer permitted based on bug #2344 fix
This commit is contained in:
@@ -832,7 +832,7 @@ TypeId Ipv6ExtensionRoutingDemux::GetTypeId ()
|
||||
static TypeId tid = TypeId ("ns3::Ipv6ExtensionRoutingDemux")
|
||||
.SetParent<Object> ()
|
||||
.SetGroupName ("Internet")
|
||||
.AddAttribute ("Routing Extensions", "The set of IPv6 Routing extensions registered with this demux.",
|
||||
.AddAttribute ("RoutingExtensions", "The set of IPv6 Routing extensions registered with this demux.",
|
||||
ObjectVectorValue (),
|
||||
MakeObjectVectorAccessor (&Ipv6ExtensionRoutingDemux::m_extensionsRouting),
|
||||
MakeObjectVectorChecker<Ipv6ExtensionRouting> ())
|
||||
|
||||
@@ -62,7 +62,7 @@ void
|
||||
FqCoDelQueueDiscNoSuitableFilter::DoRun (void)
|
||||
{
|
||||
// Packets that cannot be classified by the available filters should be dropped
|
||||
Ptr<FqCoDelQueueDisc> queueDisc = CreateObjectWithAttributes<FqCoDelQueueDisc> ("Packet limit", UintegerValue (4));
|
||||
Ptr<FqCoDelQueueDisc> queueDisc = CreateObjectWithAttributes<FqCoDelQueueDisc> ("PacketLimit", UintegerValue (4));
|
||||
Ptr<FqCoDelIpv4PacketFilter> filter = CreateObject<FqCoDelIpv4PacketFilter> ();
|
||||
queueDisc->AddPacketFilter (filter);
|
||||
|
||||
@@ -121,7 +121,7 @@ FqCoDelQueueDiscIPFlowsSeparationAndPacketLimit::AddPacket (Ptr<FqCoDelQueueDisc
|
||||
void
|
||||
FqCoDelQueueDiscIPFlowsSeparationAndPacketLimit::DoRun (void)
|
||||
{
|
||||
Ptr<FqCoDelQueueDisc> queueDisc = CreateObjectWithAttributes<FqCoDelQueueDisc> ("Packet limit", UintegerValue (4));
|
||||
Ptr<FqCoDelQueueDisc> queueDisc = CreateObjectWithAttributes<FqCoDelQueueDisc> ("PacketLimit", UintegerValue (4));
|
||||
Ptr<FqCoDelIpv6PacketFilter> ipv6Filter = CreateObject<FqCoDelIpv6PacketFilter> ();
|
||||
Ptr<FqCoDelIpv4PacketFilter> ipv4Filter = CreateObject<FqCoDelIpv4PacketFilter> ();
|
||||
queueDisc->AddPacketFilter (ipv6Filter);
|
||||
@@ -341,7 +341,7 @@ FqCoDelQueueDiscTCPFlowsSeparation::AddPacket (Ptr<FqCoDelQueueDisc> queue, Ipv4
|
||||
void
|
||||
FqCoDelQueueDiscTCPFlowsSeparation::DoRun (void)
|
||||
{
|
||||
Ptr<FqCoDelQueueDisc> queueDisc = CreateObjectWithAttributes<FqCoDelQueueDisc> ("Packet limit", UintegerValue (10));
|
||||
Ptr<FqCoDelQueueDisc> queueDisc = CreateObjectWithAttributes<FqCoDelQueueDisc> ("PacketLimit", UintegerValue (10));
|
||||
Ptr<FqCoDelIpv6PacketFilter> ipv6Filter = CreateObject<FqCoDelIpv6PacketFilter> ();
|
||||
Ptr<FqCoDelIpv4PacketFilter> ipv4Filter = CreateObject<FqCoDelIpv4PacketFilter> ();
|
||||
queueDisc->AddPacketFilter (ipv6Filter);
|
||||
@@ -431,7 +431,7 @@ FqCoDelQueueDiscUDPFlowsSeparation::AddPacket (Ptr<FqCoDelQueueDisc> queue, Ipv4
|
||||
void
|
||||
FqCoDelQueueDiscUDPFlowsSeparation::DoRun (void)
|
||||
{
|
||||
Ptr<FqCoDelQueueDisc> queueDisc = CreateObjectWithAttributes<FqCoDelQueueDisc> ("Packet limit", UintegerValue (10));
|
||||
Ptr<FqCoDelQueueDisc> queueDisc = CreateObjectWithAttributes<FqCoDelQueueDisc> ("PacketLimit", UintegerValue (10));
|
||||
Ptr<FqCoDelIpv6PacketFilter> ipv6Filter = CreateObject<FqCoDelIpv6PacketFilter> ();
|
||||
Ptr<FqCoDelIpv4PacketFilter> ipv4Filter = CreateObject<FqCoDelIpv4PacketFilter> ();
|
||||
queueDisc->AddPacketFilter (ipv6Filter);
|
||||
|
||||
@@ -105,7 +105,7 @@ TypeId FqCoDelQueueDisc::GetTypeId (void)
|
||||
StringValue ("5ms"),
|
||||
MakeStringAccessor (&FqCoDelQueueDisc::m_target),
|
||||
MakeStringChecker ())
|
||||
.AddAttribute ("Packet limit",
|
||||
.AddAttribute ("PacketLimit",
|
||||
"The hard limit on the real queue size, measured in packets",
|
||||
UintegerValue (10 * 1024),
|
||||
MakeUintegerAccessor (&FqCoDelQueueDisc::m_limit),
|
||||
|
||||
@@ -34,7 +34,7 @@ AmpduTag::GetTypeId (void)
|
||||
.SetParent<Tag> ()
|
||||
.SetGroupName ("Wifi")
|
||||
.AddConstructor<AmpduTag> ()
|
||||
.AddAttribute ("Ampdu Exists", "The value that indicates that the packet contains an AMPDU",
|
||||
.AddAttribute ("AmpduExists", "The value that indicates that the packet contains an AMPDU",
|
||||
UintegerValue (false),
|
||||
MakeUintegerAccessor (&AmpduTag::GetAmpdu),
|
||||
MakeUintegerChecker<uint8_t> ())
|
||||
|
||||
@@ -62,12 +62,12 @@ AparfWifiManager::GetTypeId (void)
|
||||
.SetParent<WifiRemoteStationManager> ()
|
||||
.SetGroupName ("Wifi")
|
||||
.AddConstructor<AparfWifiManager> ()
|
||||
.AddAttribute ("SuccessThreshold 1",
|
||||
.AddAttribute ("SuccessThreshold1",
|
||||
"The minimum number of successful transmissions in \"High\" state to try a new power or rate.",
|
||||
UintegerValue (3),
|
||||
MakeUintegerAccessor (&AparfWifiManager::m_succesMax1),
|
||||
MakeUintegerChecker<uint32_t> ())
|
||||
.AddAttribute ("SuccessThreshold 2",
|
||||
.AddAttribute ("SuccessThreshold2",
|
||||
"The minimum number of successful transmissions in \"Low\" state to try a new power or rate.",
|
||||
UintegerValue (10),
|
||||
MakeUintegerAccessor (&AparfWifiManager::m_succesMax2),
|
||||
@@ -82,22 +82,22 @@ AparfWifiManager::GetTypeId (void)
|
||||
UintegerValue (10),
|
||||
MakeUintegerAccessor (&AparfWifiManager::m_powerMax),
|
||||
MakeUintegerChecker<uint32_t> ())
|
||||
.AddAttribute ("Power decrement step",
|
||||
.AddAttribute ("PowerDecrementStep",
|
||||
"Step size for decrement the power.",
|
||||
UintegerValue (1),
|
||||
MakeUintegerAccessor (&AparfWifiManager::m_powerDec),
|
||||
MakeUintegerChecker<uint32_t> ())
|
||||
.AddAttribute ("Power increment step",
|
||||
.AddAttribute ("PowerIncrementStep",
|
||||
"Step size for increment the power.",
|
||||
UintegerValue (1),
|
||||
MakeUintegerAccessor (&AparfWifiManager::m_powerInc),
|
||||
MakeUintegerChecker<uint32_t> ())
|
||||
.AddAttribute ("Rate decrement step",
|
||||
.AddAttribute ("RateDecrementStep",
|
||||
"Step size for decrement the rate.",
|
||||
UintegerValue (1),
|
||||
MakeUintegerAccessor (&AparfWifiManager::m_rateDec),
|
||||
MakeUintegerChecker<uint32_t> ())
|
||||
.AddAttribute ("Rate increment step",
|
||||
.AddAttribute ("RateIncrementStep",
|
||||
"Step size for increment the rate.",
|
||||
UintegerValue (1),
|
||||
MakeUintegerAccessor (&AparfWifiManager::m_rateInc),
|
||||
|
||||
@@ -348,8 +348,8 @@ PowerRateAdaptationTest::TestAparf ()
|
||||
/*
|
||||
* Configure thresholds for rate and power control.
|
||||
*/
|
||||
manager->SetAttribute ("SuccessThreshold 1",UintegerValue (3));
|
||||
manager->SetAttribute ("SuccessThreshold 2",UintegerValue (10));
|
||||
manager->SetAttribute ("SuccessThreshold1",UintegerValue (3));
|
||||
manager->SetAttribute ("SuccessThreshold2",UintegerValue (10));
|
||||
manager->SetAttribute ("FailThreshold",UintegerValue (1));
|
||||
manager->SetAttribute ("PowerThreshold",UintegerValue (10));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user