|
ns-3
|
Creates EnergySource objects. More...
#include <energy-model-helper.h>

Public Member Functions | |
| virtual void | Set (std::string name, const AttributeValue &v)=0 |
| EnergySourceContainer | Install (Ptr< Node > node) const |
| EnergySourceContainer | Install (NodeContainer c) const |
| EnergySourceContainer | Install (std::string nodeName) const |
| EnergySourceContainer | InstallAll (void) const |
| This function installs an EnergySource on all nodes in simulation. | |
Creates EnergySource objects.
This class creates and installs an energy source onto network nodes. Only a single source can exist on a network node.
| EnergySourceContainer ns3::EnergySourceHelper::Install | ( | Ptr< Node > | node | ) | const |
| node | Pointer to the node where EnergySource will be installed. |
This function installs an EnergySource onto a node.
Referenced by Install(), and InstallAll().
| c | List of nodes where EnergySource will be installed. |
This function installs an EnergySource onto a list of nodes.
References ns3::EnergySourceContainer::Add(), ns3::NodeContainer::Begin(), ns3::ObjectFactory::Create(), ns3::NodeContainer::End(), and ns3::ObjectFactory::SetTypeId().
| EnergySourceContainer ns3::EnergySourceHelper::Install | ( | std::string | nodeName | ) | const |
| nodeName | Name of node where EnergySource will be installed. |
This function installs an EnergySource onto a node.
References Install().
| EnergySourceContainer ns3::EnergySourceHelper::InstallAll | ( | void | ) | const |
This function installs an EnergySource on all nodes in simulation.
References ns3::NodeContainer::GetGlobal(), and Install().
| virtual void ns3::EnergySourceHelper::Set | ( | std::string | name, |
| const AttributeValue & | v | ||
| ) | [pure virtual] |
| name | Name of attribute to set. |
| v | Value of the attribute. |
Sets one of the attributes of underlying EnergySource.
Implemented in ns3::BasicEnergySourceHelper, and ns3::RvBatteryModelHelper.