Public Member Functions | Protected Types | Protected Attributes

Decider80211Battery Class Reference
[decider - decider modulesPower consumption - Classes using/defining power consumptionIEEE 802.11 - Classes for the IEEE 802.11 implementation of MiXiM]

Extends Decider80211 by drawing power during receiving of messages. More...

#include <Decider80211Battery.h>

Inherits Decider80211.

Inherited by Decider80211MultiChannel.

Collaboration diagram for Decider80211Battery:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Decider80211Battery (DeciderToPhyInterface *phy, double threshold, double sensitivity, int channel, double decodingCurrentDelta, int myIndex=-1, bool debug=false)
 Initializes this Decider with the passed values.
virtual void setChannelIdleStatus (bool isIdle)
 Draws either idle or rx current, depending on the "isIdle" state.

Protected Types

enum  Activities { DECODING_ACCT = 0 }
 

Defines the power consuming activities (accounts) of the decider.


Protected Attributes

double decodingCurrentDelta
 Stores the current delta in mA to draw during reception of AirFrames.

Detailed Description

Extends Decider80211 by drawing power during receiving of messages.

Definition at line 29 of file Decider80211Battery.h.


Constructor & Destructor Documentation

Decider80211Battery::Decider80211Battery ( DeciderToPhyInterface phy,
double  threshold,
double  sensitivity,
int  channel,
double  decodingCurrentDelta,
int  myIndex = -1,
bool  debug = false 
) [inline]

Initializes this Decider with the passed values.

Parameters:
phy Pointer to this deciders phy layer
threshold The SNR threshold above which reception is correct
sensitivity The strength (mW) at which a signal can be received
centerFrequency The frequency used by the phy layer
decodingCurrentDelta The additional amount of power it takes to decode a signal
myIndex The index of this deciders host (for debug output)
debug Use debug output?

Definition at line 60 of file Decider80211Battery.h.


Member Data Documentation

Stores the current delta in mA to draw during reception of AirFrames.

Stores the delta to add to the base current drawn during RX state when no frame is received but we are listening.

Definition at line 38 of file Decider80211Battery.h.

Referenced by setChannelIdleStatus().


The documentation for this class was generated from the following files: