00001 /* #start# *********************************************************** 00002 00003 Scheduling Simulator 00004 Lehrstuhl f"ur Effiziente Algorithmen 00005 Technische Universit"at M"unchen 00006 00007 File : $Id: SMarkovChain.h,v 1.2 2003/04/12 11:34:56 meierb Exp $ 00008 00009 Purpose : 00010 00011 * #end# ************************************************************* */ 00012 00013 #ifndef SMARKOVCHAIN_H 00014 #define SMARKOVCHAIN_H 00015 00016 #include <LEDA/random_source.h> 00017 00023 class SMarkovChain { 00024 public: 00025 SMarkovChain(double x[10][10], int l); 00026 00027 ~SMarkovChain(); 00028 00031 int nextState(int i); 00032 00033 private: 00037 double q[10][10]; 00038 // number of rows = columns, therefore only one parameter 00039 int rows; 00040 leda_random_source randomsource; 00041 00042 }; 00043 00044 #endif