point-to-point: Extending helper interface to support setting individual queue parameters
This commit is contained in:
1 parent
efabb7dcaa
commit
174704abba
2 files changed
+20
-2
No files matched your search
@@ -53,14 +53,20 @@ PointToPointHelper::SetQueue (std::string type,
|
||||
std::string n3, const AttributeValue &v3,
|
||||
std::string n4, const AttributeValue &v4)
|
||||
{
|
||||
m_queueFactory.SetTypeId (type);
|
||||
m_queueFactory = ObjectFactory (type); // to reset any previously set attributes, if any
|
||||
m_queueFactory.Set (n1, v1);
|
||||
m_queueFactory.Set (n2, v2);
|
||||
m_queueFactory.Set (n3, v3);
|
||||
m_queueFactory.Set (n4, v4);
|
||||
}
|
||||
|
||||
void
|
||||
void
|
||||
PointToPointHelper::SetQueueAttribute (std::string name, const AttributeValue &value)
|
||||
{
|
||||
m_queueFactory.Set (name, value);
|
||||
}
|
||||
|
||||
void
|
||||
PointToPointHelper::SetDeviceAttribute (std::string n1, const AttributeValue &v1)
|
||||
{
|
||||
m_deviceFactory.Set (n1, v1);
|
||||
|
||||
@@ -76,6 +76,18 @@ public:
|
||||
std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
|
||||
std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue ());
|
||||
|
||||
/**
|
||||
* Set an attribute value to be propagated to each Queue created by the
|
||||
* helper.
|
||||
*
|
||||
* \param name the name of the attribute to set
|
||||
* \param value the value of the attribute to set
|
||||
*
|
||||
* Set these attributes on each ns3::Queue created by PointToPointHelper::Install
|
||||
*/
|
||||
void
|
||||
SetQueueAttribute (std::string name, const AttributeValue &value);
|
||||
|
||||
/**
|
||||
* Set an attribute value to be propagated to each NetDevice created by the
|
||||
* helper.
|
||||
|
||||
Reference in new issue
Block a user