package dk.aau.kah.bits.evaluation;

import da.aau.kah.bits.exceptions.InvalidDatabaseConfig;
import dk.aau.kah.bits.database.DatabaseConfig;
import dk.aau.kah.bits.database.DatabaseHandler;

public class EvaluationFactory {

	public EvaluationFactory() {
		
	}

	public AbstractEvaluationHandler makeEvaluation(DatabaseHandler databaseHandle, DatabaseConfig databaseConfig) throws InvalidDatabaseConfig {
		String datasetType = databaseConfig.getDatasetType();
		AbstractEvaluationHandler evaluationhandler;
		
		if (datasetType.equals("TPC-H")) {
			evaluationhandler = new EvaluationHandlerTPCH(databaseHandle);
		} else {
			throw new InvalidDatabaseConfig("The Dataset Type "+databaseConfig.getDatasetType()+" is not known, implementation is missing.");
		}
		
		
		return evaluationhandler;
	}
	 
}

@@ -760,14 +760,8 @@
 %09%09%7D%0A
-%09%09%0A%09%09%0A
 %09%09re

clean up