Closed Mister-Mario closed 5 months ago
The PopulationGenerator and CapitalGenerator are examples of specific implementations of the question generator. Also the QuestionGeneratorClass is the facade that comunicates the question generator with the backend. Also there's a connection between the database comunication interface and the AbstractGenerator, but in truth the comunication would be done through the specific implementations of the generator. And finally, the names are provisional and subject to change.
And one extra thing, the QuestionType is there simply for the conditional code in the facade, that would be something like:
if (type==QuestionType.POPULATION)
generator = new PopulationGenerator();
else if (type==QuestionType.CAPITAL)
generator = new CapitalGenerator();
Discuss the domain and data models