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 ExperimentFactory {

	public ExperimentFactory() {
		
	}

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

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 ExperimentFactory {

	public ExperimentFactory() {
		
	}

	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;
	}
	 
}

--- 
+++ 
@@ -10,12 +10,12 @@
 		
 	}
 
-	public AbstractEvaluationHandler makeEvaluation(DatabaseHandler databaseHandle, DatabaseConfig databaseConfig) throws InvalidDatabaseConfig {
+	public AbstractExperimentHandler makeEvaluation(DatabaseHandler databaseHandle, DatabaseConfig databaseConfig) throws InvalidDatabaseConfig {
 		String datasetType = databaseConfig.getDatasetType();
-		AbstractEvaluationHandler evaluationhandler;
+		AbstractExperimentHandler evaluationhandler;
 		
 		if (datasetType.equals("TPC-H")) {
-			evaluationhandler = new EvaluationHandlerTPCH(databaseHandle);
+			evaluationhandler = new ExperimentHandlerTPCH(databaseHandle);
 		} else {
 			throw new InvalidDatabaseConfig("The Dataset Type "+databaseConfig.getDatasetType()+" is not known, implementation is missing.");
 		}
Rename some functions to experiment instead of evaluation