00001 /* #start# *********************************************************** 00002 00003 Scheduling Simulator 00004 Lehrstuhl f"ur Effiziente Algorithmen 00005 Technische Universit"at M"unchen 00006 00007 File : $Id: SSelfSimDist.h,v 1.2 2003/04/12 11:34:57 meierb Exp $ 00008 00009 Purpose : 00010 00011 * #end# ************************************************************* */ 00012 00013 #ifndef SSELFSIMDIST_H 00014 #define SSELFSIMDIST_H 00015 00016 #include "SProbabilityDist.h" 00017 #include "SExpDist.h" 00018 #include "SMarkovChain.h" 00019 00029 class SSelfSimDist : public SProbabilityDist { 00030 public: 00031 SSelfSimDist(); 00032 00033 virtual double getValue(); 00034 00035 virtual double getExpectation() const{ 00036 return 1/_p; 00037 } 00038 00039 00040 00044 virtual Type getType() const 00045 { return SELFSIMILAR; } 00046 ; 00047 00048 private : 00049 SExpDist* expdist; 00050 SMarkovChain* mchain; 00051 double _p; 00052 }; 00053 00054 #endif