Helper class for the creation of Sink applications. More...
#include "sink-helper.h"
Inheritance diagram for ns3::SinkHelper:
Collaboration diagram for ns3::SinkHelper:Public Member Functions | |
| SinkHelper () | |
| Default constructor. More... | |
| SinkHelper (uint16_t numnodes, Ptr< OutputManager > outputManager, Ptr< OnionValidator > onionValidator, uint16_t *m_onionPathLengths) | |
| Constructor with attributes to set basic attributes of the sink node. More... | |
| ~SinkHelper () | |
| Default constructor. More... | |
| ApplicationContainer | Install (NodeContainer c) const |
| Ptr< Application > | InstallPriv (Ptr< Node > node) const |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| Setter of individual attributes. More... | |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
| Register this type. More... | |
Private Attributes | |
| ObjectFactory | m_factory |
| factory object More... | |
| uint16_t | m_numnodes |
| Number of sensor nodes in the network. More... | |
| uint16_t | m_onionTimeout |
| A watchdog timer set to abort onion messagess, if the timer elepses before the onion returns back to the sink node. More... | |
| Ptr< OnionValidator > | m_onionValidator |
| Manage onions and when to abort them. More... | |
| Ptr< OutputManager > | m_outputManager |
| Manage the output of the simulation. More... | |
Helper class for the creation of Sink applications.
Definition at line 66 of file sink-helper.h.
| ns3::SinkHelper::SinkHelper | ( | ) |
| ns3::SinkHelper::SinkHelper | ( | uint16_t | numnodes, |
| Ptr< OutputManager > | outputManager, | ||
| Ptr< OnionValidator > | onionValidator, | ||
| uint16_t * | m_onionPathLengths | ||
| ) |
Constructor with attributes to set basic attributes of the sink node.
Definition at line 44 of file sink-helper.cc.
References m_factory, m_numnodes, m_onionValidator, and m_outputManager.
| ns3::SinkHelper::~SinkHelper | ( | ) |
Default constructor.
Definition at line 54 of file sink-helper.cc.
|
static |
| ApplicationContainer ns3::SinkHelper::Install | ( | NodeContainer | c | ) | const |
Definition at line 65 of file sink-helper.cc.
References InstallPriv().
Referenced by WsnConstructor::InstallApplications().
Here is the call graph for this function:
Here is the caller graph for this function:| Ptr< Application > ns3::SinkHelper::InstallPriv | ( | Ptr< Node > | node | ) | const |
Definition at line 77 of file sink-helper.cc.
References m_factory.
Referenced by Install().
Here is the caller graph for this function:| void ns3::SinkHelper::SetAttribute | ( | std::string | name, |
| const AttributeValue & | value | ||
| ) |
Setter of individual attributes.
Definition at line 59 of file sink-helper.cc.
References m_factory.
|
private |
factory object
Definition at line 124 of file sink-helper.h.
Referenced by InstallPriv(), SetAttribute(), and SinkHelper().
|
private |
Number of sensor nodes in the network.
Definition at line 123 of file sink-helper.h.
Referenced by SinkHelper().
|
private |
A watchdog timer set to abort onion messagess, if the timer elepses before the onion returns back to the sink node.
Definition at line 128 of file sink-helper.h.
|
private |
Manage onions and when to abort them.
Definition at line 126 of file sink-helper.h.
Referenced by SinkHelper().
|
private |
Manage the output of the simulation.
Definition at line 125 of file sink-helper.h.
Referenced by SinkHelper().