Simple Module BatteryStats

Package: org.mixim.modules.power.battery
File: modules/power/battery/BatteryStats.ned

C++ definition

module for collecting battery statistics

BatteryStats

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Used in compound modules:

If a module type shows up more than once, that means it has been defined in more than one NED file.

Host802154_2400MHz (compound module)

This NED module defines a host using an IEEE 802.15.4 transceiver at 2.4GHz for wireless communications, that can be used to simulate wireless sensor networks.

Host802154A (compound module)

This host NED module models a host using an IEEE 802.15.4A correlation receiver.

HostBMAC (compound module)

Example host module using a BMAC Network interface card.

HostLMAC (compound module)

Example host module using a LMAC Network interface card.

PhyMacHost (compound module) (no description)

Parameters:

Name Type Default value Description
notAffectedByHostState bool true
debug bool

write per-activity and per-device statistics to omnetpp.sca (if false, only total energy and lifetime are written)

detail bool

subscribe to battery status and record time series data in omnetpp.vec (resolution depends on battery's publishDelta)

timeSeries bool

Source code:

//
// module for collecting battery statistics
//
simple BatteryStats
{
    parameters:
        bool notAffectedByHostState = true;
        bool debug;
        // write per-activity and per-device statistics to omnetpp.sca
		// (if false, only total energy and lifetime are written)
        bool detail;
        // subscribe to battery status and record time series
		// data in omnetpp.vec (resolution depends on battery's 
		// publishDelta)
        bool timeSeries;
}