Package dataModel
Class Employee
- java.lang.Object
-
- dataModel.Employee
-
- Direct Known Subclasses:
Chef
,ChefDeCuisine
,SousChef
public abstract class Employee extends java.lang.Object
Employee
Abstract class responsible for handling the information about an employee.- Since:
- 2017-07-22
- Version:
- 1.0
-
-
Method Summary
Modifier and Type Method Description void
addOrder(Order o)
Adds an order to the list of ordersint
computeEmpStats()
Computes the statistics for an employeeabstract double
computeSalary()
Computes the salary of the employeedouble
getEvaluation()
java.lang.String
getName()
int
getNumberOfOrders()
double
getSalary()
java.lang.String
getShortReport()
-
-
-
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()
-
-