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(
// Create expXYZ_demand.csv file
ioHandler.writeToCSVFile(
"${resultsFolder}exp${this.config.executionId}_demand",
calculateDemandMetric(config.loads, config.compositeStrategy.benchmarkExecutor.results),
calculateDemandMetric(config.loads, config.searchStrategy.benchmarkExecutor.results),
listOf("load","resources")
)
}
......@@ -161,8 +161,8 @@ class TheodoliteExecutor(
return executionID
}
private fun calculateDemandMetric(loadDimensions: List<LoadDimension>, results: Results): List<List<String>> {
return loadDimensions.map { listOf(it.get().toString(), results.getMinRequiredInstances(it).get().toString()) }
private fun calculateDemandMetric(loads: List<Int>, results: Results): List<List<String>> {
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.
Finish editing this message first!
Please register or to comment