|
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) |
Assign WifiRadioEnergyModel to wifi devices.
This installer installs WifiRadioEnergyModel for only WifiNetDevice objects.
Construct a helper which is used to add a radio energy model to a node
References ns3::ObjectFactory::SetTypeId().
Destroy a RadioEnergy Helper
| void ns3::WifiRadioEnergyModelHelper::Set | ( | std::string | name, |
| const AttributeValue & | v | ||
| ) | [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.