per-device/per-account record of battery consumption, is passed to BatteryStats on finish() More...
#include <DeviceEntry.h>
Public Member Functions | |
DeviceEntry () | |
New empty device entry. | |
Public Attributes | |
opp_string | name |
Name of the device. | |
double | draw |
Actual current drawn. | |
int | currentActivity |
The activity/account currently drawing power. | |
int | numAccts |
The amount of different power drawing activities/acounts this device has. | |
double * | accts |
The power already drawn for each activity/account. | |
simtime_t * | times |
The time spend for each activity/account. |
per-device/per-account record of battery consumption, is passed to BatteryStats on finish()
For each device, maintain the current value of the current being drawn by the device, the activity and time for which ongoing current draw is being charged. The sum over the activities is the total energy consumed by the device, but the sum of times is the total active time, not necessarily the total lifetime.
Definition at line 33 of file DeviceEntry.h.