Skip to content
Snippets Groups Projects
Commit d798ba38 authored by Marcel Samir Becker's avatar Marcel Samir Becker
Browse files

Removed LoadDimension Usage after Merging from Master

parent 1cbdc7e6
No related branches found
No related tags found
1 merge request!215Redesign Strategy, Load, and Resources data types
...@@ -144,7 +144,7 @@ class TheodoliteExecutor( ...@@ -144,7 +144,7 @@ class TheodoliteExecutor(
// Create expXYZ_demand.csv file // Create expXYZ_demand.csv file
ioHandler.writeToCSVFile( ioHandler.writeToCSVFile(
"${resultsFolder}exp${this.config.executionId}_demand", "${resultsFolder}exp${this.config.executionId}_demand",
calculateDemandMetric(config.loads, config.compositeStrategy.benchmarkExecutor.results), calculateDemandMetric(config.loads, config.searchStrategy.benchmarkExecutor.results),
listOf("load","resources") listOf("load","resources")
) )
} }
...@@ -161,8 +161,8 @@ class TheodoliteExecutor( ...@@ -161,8 +161,8 @@ class TheodoliteExecutor(
return executionID return executionID
} }
private fun calculateDemandMetric(loadDimensions: List<LoadDimension>, results: Results): List<List<String>> { private fun calculateDemandMetric(loads: List<Int>, results: Results): List<List<String>> {
return loadDimensions.map { listOf(it.get().toString(), results.getMinRequiredInstances(it).get().toString()) } return loads.map { listOf(it.toString(), results.getMinRequiredInstances(it).toString()) }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment