A helper to make it easier to instantiate an ns3::FlentApplication. More...
#include "flent-helper.h"
Public Member Functions | |
| FlentHelper (std::string testname, Address address) | |
| Create an FlentHelper to make it easier to work with FlentApplication. | |
| Time | GetStopTime () const |
| Get the overall stop time of the simulation. | |
| ApplicationContainer | Install (Ptr< Node > node) const |
| Install an ns3::FlentApplication on the node configured with all the attributes set with SetAttribute. | |
| ApplicationContainer | Install (std::string nodeName) const |
| Install an ns3::FlentApplication on the node configured with all the attributes set with SetAttribute. | |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| Helper function used to set the underlying application attributes. | |
| void | SetTestLength (Time length) |
| Set the length of the Flent test. | |
| void | SetTestStartTime (Time start) |
| Set the test start time. | |
Private Member Functions | |
| Ptr< Application > | InstallPriv (Ptr< Node > node) const |
| Install an ns3::FlentApplication on the node configured with all the attributes set with SetAttribute. | |
Private Attributes | |
| ObjectFactory | m_factory |
| Object factory. | |
| Time | m_length {Seconds(60)} |
| The duration of the Flent test. | |
| Time | m_startTime {0} |
| The start time of the Flent test. | |
A helper to make it easier to instantiate an ns3::FlentApplication.
Definition at line 29 of file flent-helper.h.
| ns3::FlentHelper::FlentHelper | ( | std::string | testname, |
| Address | address ) |
Create an FlentHelper to make it easier to work with FlentApplication.
| [in] | testname | the name of the test to run on FlentApplication The supported tests are ping, tcp_upload, tcp_download and rrul. |
| [in] | Address | the address of the remote host to send traffic to. |
Definition at line 20 of file flent-helper.cc.
References m_factory.
| Time ns3::FlentHelper::GetStopTime | ( | ) | const |
Get the overall stop time of the simulation.
Definition at line 50 of file flent-helper.cc.
References m_length, m_startTime, and ns3::Seconds().
| ApplicationContainer ns3::FlentHelper::Install | ( | Ptr< Node > | node | ) | const |
Install an ns3::FlentApplication on the node configured with all the attributes set with SetAttribute.
| node | The node on which an FlentApplication will be installed. |
Definition at line 56 of file flent-helper.cc.
References InstallPriv().
Referenced by FlentApplicationPing::DoRun(), FlentApplicationRrul::DoRun(), FlentApplicationTcpDownload::DoRun(), and FlentApplicationTcpUpload::DoRun().
| ApplicationContainer ns3::FlentHelper::Install | ( | std::string | nodeName | ) | const |
Install an ns3::FlentApplication on the node configured with all the attributes set with SetAttribute.
| nodeName | The node on which an FlentApplication will be installed. |
Definition at line 62 of file flent-helper.cc.
References ns3::Names::Find(), and InstallPriv().
|
private |
Install an ns3::FlentApplication on the node configured with all the attributes set with SetAttribute.
| node | The node on which an FlentApplication will be installed. |
Definition at line 69 of file flent-helper.cc.
References m_factory.
Referenced by Install(), and Install().
| void ns3::FlentHelper::SetAttribute | ( | std::string | name, |
| const AttributeValue & | value ) |
Helper function used to set the underlying application attributes.
| name | the name of the application attribute to set |
| value | the value of the application attribute to set |
Definition at line 28 of file flent-helper.cc.
References m_factory.
Referenced by FlentApplicationPing::DoRun(), FlentApplicationRrul::DoRun(), FlentApplicationTcpDownload::DoRun(), and FlentApplicationTcpUpload::DoRun().
| void ns3::FlentHelper::SetTestLength | ( | Time | length | ) |
Set the length of the Flent test.
| Length | Test length |
Definition at line 42 of file flent-helper.cc.
| void ns3::FlentHelper::SetTestStartTime | ( | Time | start | ) |
Set the test start time.
| start | Test start time |
Definition at line 34 of file flent-helper.cc.
References m_factory, and m_startTime.
|
private |
Object factory.
Definition at line 95 of file flent-helper.h.
Referenced by FlentHelper(), InstallPriv(), SetAttribute(), SetTestLength(), and SetTestStartTime().
The duration of the Flent test.
Definition at line 97 of file flent-helper.h.
Referenced by GetStopTime(), and SetTestLength().
|
private |
The start time of the Flent test.
Definition at line 96 of file flent-helper.h.
Referenced by GetStopTime(), and SetTestStartTime().