covid_10012023_covid-reports/src/services/ReportGenerationService.java

22 lines
707 B
Java

package services;
import data.repos.QueryResultsRepository;
/**
* Generates a report from results
*
* Since only a std-out is the only strategy, composition is preferred.
* If more strategies are needed in the future, just add in a ReporterApi that delegates the task
* to any (strategy) class that implements it.
* A basic printer is provided, more members can be added to use print out the received results differently.
*/
public class ReportGenerationService {
/**
* Prints results to the console.
* @param queryResultsRepository
*/
public void reportBaseResults(QueryResultsRepository queryResultsRepository) {
System.out.println(queryResultsRepository);
}
}