Package mainEngine
Interface IMainEngine
-
- All Known Implementing Classes:
MainEngine
public interface IMainEngineIMainEngine
Interface which provides a contract to the clients regarding (a) the load of the input files, (b) the computation of the statistics and (c) the creation of reports- Since:
- 2017-07-22
- Version:
- 1.0
-
-
Method Summary
Modifier and Type Method Description voidcomputeAllStats()Computes the weekly statistics and the statistics for each employee and prints the resultsvoidcreateReports(java.lang.String mode)Creates the different types of reportsvoidgetDishes(javafx.collections.ObservableList<Dish> data)voidgetEmployees(javafx.collections.ObservableList<Employee> data)intloadAllData()Loads the data from the input files
-
-
-
Method Detail
-
loadAllData
int loadAllData()
Loads the data from the input files- Returns:
- return 0 if executed properly
-
computeAllStats
void computeAllStats()
Computes the weekly statistics and the statistics for each employee and prints the results
-
createReports
void createReports(java.lang.String mode)
Creates the different types of reports- Parameters:
mode- a String to denote how to output reports. Valid values: "ReportGeneratorForFiles" / "ReportGeneratorForHTML"
-
getEmployees
void getEmployees(javafx.collections.ObservableList<Employee> data)
-
getDishes
void getDishes(javafx.collections.ObservableList<Dish> data)
-
-