Add a SensorDeviceEnergyModel

I created a SensorDeviceEnergyModel which allows easier energy consumption modeling for sensor devices. This is a DeviceEnergyModel that is installed on a node directly and leaves a lot of responsibility to the user. That means that state changes - while not being as low-level as, for example, in the SimpleDeviceEnergyModel - are still required to be set up by the user in some way.

More concretely, the user can set up "measurement activities" (consisting of a start time, duration, and a state to switch back to afterwards). After being set up (i.e. scheduled), the measurement activity will be executed automatically and failures (for example due to energy depletion) can be reported back to the user using callbacks.

As of right now, no tests or examples for this are available. However, if any of such is required or wanted, I will add some.


This code was created as part of my Bachelor Thesis at the Research Group of Connected and Mobile Systems at the Institute of Operating Systems and Computer Networks (IBR) at the Technische Universität Braunschweig.

Merge request reports

Loading