Package dataModel
Class Employee
- java.lang.Object
-
- dataModel.Employee
-
- Direct Known Subclasses:
Chef,ChefDeCuisine,SousChef
public abstract class Employee extends java.lang.ObjectEmployee
Abstract class responsible for handling the information about an employee.- Since:
- 2017-07-22
- Version:
- 1.0
-
-
Method Summary
Modifier and Type Method Description voidaddOrder(Order o)Adds an order to the list of ordersintcomputeEmpStats()Computes the statistics for an employeeabstract doublecomputeSalary()Computes the salary of the employeedoublegetEvaluation()java.lang.StringgetName()intgetNumberOfOrders()doublegetSalary()java.lang.StringgetShortReport()
-
-
-
Method Detail
-
computeSalary
public abstract double computeSalary()
Computes the salary of the employee- Returns:
- the salary of the employee
-
addOrder
public void addOrder(Order o)
Adds an order to the list of orders- Parameters:
o- : an order
-
computeEmpStats
public int computeEmpStats()
Computes the statistics for an employee- Returns:
- the number of orders
-
getShortReport
public java.lang.String getShortReport()
- Returns:
- a short report regarding the employee
-
getName
public java.lang.String getName()
-
getSalary
public double getSalary()
-
getEvaluation
public double getEvaluation()
-
getNumberOfOrders
public int getNumberOfOrders()
-
-