Decider80211Battery.h

00001 //
00002 // This program is free software: you can redistribute it and/or modify
00003 // it under the terms of the GNU Lesser General Public License as published by
00004 // the Free Software Foundation, either version 3 of the License, or
00005 // (at your option) any later version.
00006 //
00007 // This program is distributed in the hope that it will be useful,
00008 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00009 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010 // GNU Lesser General Public License for more details.
00011 //
00012 // You should have received a copy of the GNU Lesser General Public License
00013 // along with this program.  If not, see http://www.gnu.org/licenses/.
00014 //
00015 
00016 #ifndef DECIDER80211BATTERY_H_
00017 #define DECIDER80211BATTERY_H_
00018 
00019 #include "Decider80211.h"
00020 
00029 class Decider80211Battery : public Decider80211 {
00030 protected:
00038   double decodingCurrentDelta;
00039 
00044   enum Activities {
00045     DECODING_ACCT=0
00046   };
00047 public:
00060   Decider80211Battery(DeciderToPhyInterface* phy,
00061             double threshold,
00062             double sensitivity,
00063             int channel,
00064             double decodingCurrentDelta,
00065             int myIndex = -1,
00066             bool debug = false):
00067     Decider80211(phy, threshold, sensitivity, channel, myIndex, debug),
00068     decodingCurrentDelta(decodingCurrentDelta)
00069   {}
00070 
00075   virtual void setChannelIdleStatus(bool isIdle);
00076 };
00077 
00078 #endif /* DECIDER80211BATTERY_H_ */