ns-3
|
Assign WifiRadioEnergyModel to wifi devices. More...
#include <wifi-radio-energy-model-helper.h>
Public Member Functions | |
WifiRadioEnergyModelHelper () | |
~WifiRadioEnergyModelHelper () | |
void | Set (std::string name, const AttributeValue &v) |
void | SetDepletionCallback (WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback callback) |
![]() | |
DeviceEnergyModelContainer | Install (Ptr< NetDevice > device, Ptr< EnergySource > source) const |
DeviceEnergyModelContainer | Install (NetDeviceContainer deviceContainer, EnergySourceContainer sourceContainer) const |
Assign WifiRadioEnergyModel to wifi devices.
This installer installs WifiRadioEnergyModel for only WifiNetDevice objects.
ns3::WifiRadioEnergyModelHelper::WifiRadioEnergyModelHelper | ( | ) |
Construct a helper which is used to add a radio energy model to a node
References ns3::ObjectFactory::SetTypeId().
ns3::WifiRadioEnergyModelHelper::~WifiRadioEnergyModelHelper | ( | ) |
Destroy a RadioEnergy Helper
|
virtual |
name | the name of the attribute to set |
v | the value of the attribute |
Sets an attribute of the underlying PHY object.
Implements ns3::DeviceEnergyModelHelper.
References ns3::ObjectFactory::Set().
void ns3::WifiRadioEnergyModelHelper::SetDepletionCallback | ( | WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback | callback | ) |
callback | Callback function for energy depletion handling. |
Sets the callback to be invoked when energy is depleted.