Helper class for the creation of SensorNode applications. More...
#include "sensornode-helper.h"
Inheritance diagram for ns3::SensorNodeHelper:
Collaboration diagram for ns3::SensorNodeHelper:Public Member Functions | |
| SensorNodeHelper () | |
| Default constructor. More... | |
| SensorNodeHelper (Ipv4Address address, Ptr< OutputManager > outputManager, Ptr< OnionValidator > onionValidator) | |
| Constructor with attributes to set basic attributes of sensor nodes. More... | |
| ~SensorNodeHelper () | |
| 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_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... | |
| Ipv4Address | m_sinkAddress |
| Ipv4 address of the sink node. More... | |
Helper class for the creation of SensorNode applications.
Definition at line 56 of file sensornode-helper.h.
| ns3::SensorNodeHelper::SensorNodeHelper | ( | ) |
| ns3::SensorNodeHelper::SensorNodeHelper | ( | Ipv4Address | address, |
| Ptr< OutputManager > | outputManager, | ||
| Ptr< OnionValidator > | onionValidator | ||
| ) |
Constructor with attributes to set basic attributes of sensor nodes.
Definition at line 44 of file sensornode-helper.cc.
References m_factory, m_onionValidator, and m_outputManager.
| ns3::SensorNodeHelper::~SensorNodeHelper | ( | ) |
Default constructor.
Definition at line 54 of file sensornode-helper.cc.
|
static |
| ApplicationContainer ns3::SensorNodeHelper::Install | ( | NodeContainer | c | ) | const |
Definition at line 65 of file sensornode-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::SensorNodeHelper::InstallPriv | ( | Ptr< Node > | node | ) | const |
Definition at line 77 of file sensornode-helper.cc.
References m_factory.
Referenced by Install().
Here is the caller graph for this function:| void ns3::SensorNodeHelper::SetAttribute | ( | std::string | name, |
| const AttributeValue & | value | ||
| ) |
Setter of individual attributes.
Definition at line 59 of file sensornode-helper.cc.
References m_factory.
|
private |
factory object
Definition at line 116 of file sensornode-helper.h.
Referenced by InstallPriv(), SensorNodeHelper(), and SetAttribute().
|
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 115 of file sensornode-helper.h.
|
private |
Manage onions and when to abort them.
Definition at line 113 of file sensornode-helper.h.
Referenced by SensorNodeHelper().
|
private |
Manage the output of the simulation.
Definition at line 112 of file sensornode-helper.h.
Referenced by SensorNodeHelper().
|
private |
Ipv4 address of the sink node.
Definition at line 111 of file sensornode-helper.h.