Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

RSSI.h

00001 /* -*- mode:c++ -*- ********************************************************
00002  * file:        RSSI.h
00003  *
00004  * author:      Andreas Koepke
00005  *
00006  * copyright:   (C) 2005 Telecommunication Networks Group (TKN) at
00007  *              Technische Universitaet Berlin, Germany.
00008  *
00009  *              This program is free software; you can redistribute it
00010  *              and/or modify it under the terms of the GNU General Public
00011  *              License as published by the Free Software Foundation; either
00012  *              version 2 of the License, or (at your option) any later
00013  *              version.
00014  *              For further information see file COPYING
00015  *              in the top level directory
00016  ***************************************************************************
00017  * part of:     framework implementation developed by tkn
00018  **************************************************************************/
00019 
00020 #ifndef RSSI_H
00021 #define RSSI_H
00022 
00023 #include <omnetpp.h>
00024 #include <Blackboard.h>
00025 #include <sstream>
00026 
00037 class  RSSI : public BBItem
00038 {
00039     BBITEM_METAINFO(BBItem);
00040 
00041 protected:
00043     double rssi;
00044     
00045 public:
00046 
00048     RSSI(double r=0) : BBItem(), rssi(r) {
00049     };
00050 
00052     double getRSSI() const  {
00053         return rssi;
00054     }
00055     
00057     void setRSSI(double r) {
00058         rssi = r;
00059     }
00060     
00062     std::string info() const {
00063         std::ostringstream ost;
00064         ost << " rssi level is "<<rssi<<" mW";
00065         return ost.str();
00066     }
00067 };
00068 
00069 
00070 #endif

Generated on Fri Jan 12 08:29:32 2007 for Mobility Framework by  doxygen 1.4.4