Package mainEngine
Interface IMainEngine
-
- All Known Implementing Classes:
MainEngine
public interface IMainEngine
IMainEngine
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 void
computeAllStats()
Computes the weekly statistics and the statistics for each employee and prints the resultsvoid
createReports(java.lang.String mode)
Creates the different types of reportsvoid
getDishes(javafx.collections.ObservableList<Dish> data)
void
getEmployees(javafx.collections.ObservableList<Employee> data)
int
loadAllData()
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)
-
-