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

PhyControlInfo.h

00001 /* -*- mode:c++ -*- *******************************************************
00002  * file:        PhyControlInfo.h
00003  *
00004  * author:      Andreas Koepke
00005  *
00006  * copyright:   (C) 2006 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  * description: - control info to pass physical information 
00019  **************************************************************************/
00020 
00021 #ifndef PHYCONTROLINFO_H
00022 #define PHYCONTROLINFO_H
00023 
00024 #include <omnetpp.h>
00025 
00035 class PhyControlInfo : public cPolymorphic
00036 {
00037   protected:
00041     double bitrate;
00043     double snr;
00044     
00045   public:
00047     PhyControlInfo(const double br=0, const double s=0) : cPolymorphic(), bitrate(br), snr(s) {};
00048 
00050     virtual ~PhyControlInfo(){};
00051 
00053     virtual const double getBitrate() {
00054   return bitrate;
00055     };
00056 
00058     virtual void setBitrate(const double br){
00059   bitrate = br;
00060     };
00061 
00063     virtual const double getSnr() {
00064   return snr;
00065     };
00066 
00068     virtual void setSnr(const double r){
00069   snr = r;
00070     };
00071 };
00072 
00073 #endif

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