SVivaldi.h

Go to the documentation of this file.
00001 // Copyright (C) 2009 Institut fuer Telematik, Universitaet Karlsruhe (TH)
00002 //
00003 // This program is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU General Public License
00005 // as published by the Free Software Foundation; either version 2
00006 // of the License, or (at your option) any later version.
00007 //
00008 // This program is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 // GNU General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU General Public License
00014 // along with this program; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00016 //
00017 
00023 #ifndef _SVIVALDI_
00024 #define _SVIVALDI_
00025 
00026 
00027 #include <omnetpp.h>
00028 
00029 #include <Vivaldi.h>
00030 
00031 class NeighborCache;
00032 
00033 
00034 class SVivaldi : public Vivaldi
00035 {
00036   private:
00037     double lossC;
00038     double effectiveSample;
00039     double loss;
00040     double lossResetLimit;
00041 
00042   protected:
00043     virtual double calcError(const simtime_t& rtt, double dist, double weight);
00044     virtual double calcDelta(const simtime_t& rtt, double dist, double weight);
00045 
00046   public:
00047     virtual void init(NeighborCache* neighborCache);
00048 };
00049 
00050 #endif
Generated on Wed May 26 16:21:15 2010 for OverSim by  doxygen 1.6.3