traffic-generator/src/ModelRead.cpp
/**
 * Read in the Markov probability matrix
 *
 * @param modelFile The model file stream
 */
Read in the Markov probability matrix
@param modelFile The model file stream
Read in the Markov probability matrix @param modelFile The model file stream
void ReadMarkov1(ifstream& modelFile) {
	string header;
	double transition;
	modelFile >> header;
	for(int i = 1; i <= g_numClasses; i++) {
		for(int j = 0; j < g_numClasses; j++) {
			modelFile >> transition;
			g_states1[g_hierClass][i].Add(transition);
		}
	}
	modelFile >> header;
	modelFile >> header;
	for(int i = 0; i < g_numClasses; i++) {
		modelFile >> transition;
		g_steadyState[g_hierClass].push_back(transition);
	}
	modelFile >> header;
}
void ReadMarkov1 ( ifstream & modelFile ) { string header ; double transition ; modelFile >> header ; for ( int i = 1 ; i <= g_numClasses ; i ++ ) { for ( int j = 0 ; j < g_numClasses ; j ++ ) { modelFile >> transition ; g_states1 [ g_hierClass ] [ i ] . Add ( transition ) ; } } modelFile >> header ; modelFile >> header ; for ( int i = 0 ; i < g_numClasses ; i ++ ) { modelFile >> transition ; g_steadyState [ g_hierClass ] . push_back ( transition ) ; } modelFile >> header ; }
Read in the Markov probability matrix
 @param modelFile The model file stream
Read in the Markov probability matrix @param modelFile The model file stream
//Read steady state