Highlights of patch set 12:
EnergySource:
1. Add new interfaces (using current, or Ampere) that allows the
EnergySource to use total current from all devices to update remaining
energy.
2. Add "supply voltage" parameter.
3. Add EnergySourceContainer class.
4. Installs on the node separately from DeviceEnergyModel obejcts.
5. BasicEnergySource now performs periodic update of remaining energy
(was done by BasicRadioEnergyModel or DeviceEnergyModels).
DeviceEnergyModel:
1. Add "current" parameter. Each state of the device will have a
different current draw.
2. RadioEnergyModel class has been removed. It is difficult and
unnecessary to have a base class for all radio devices.
3. BasicRadioEnerygModel is renamed to WifiRadioEnergyModel.
4. Add DeviceEnergyModelContainer class.
5. DeviceEnergyModels are now installed using NetDevices or
NetDeviceContainers.
Note:
1. Python bindings are re-generated and included in this patch set.
2. Patch to WifiPhy & YansWifiPhy are not included in this patch set.
Sections in WifiRadioEnergyModelHelper that uses the modified WifiPhy &
YansWifiPhy is commented out. In order to use WifiRadioEnergyModel,
modification to WifiPhy and YansWifiPhy is required.
3. Interfaces for updating energy in terms of Joules are preserved.
Developers of new DeviceEnergyModel or EnergySource can chooses to use
either interfaces.
4. It is not recommended (but not prevented by the model) to mix models
that use Energy (in joules) and current (in Ampere) in the same
simulation.
Thanks,
Tony