Package dataModel

Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      Employee()  
      Employee​(java.lang.String fName, java.lang.String mName, java.lang.String lName)  
    • Method Summary

      Modifier and Type Method Description
      void addOrder​(Order o)
      Adds an order to the list of orders
      int computeEmpStats()
      Computes the statistics for an employee
      abstract double computeSalary()
      Computes the salary of the employee
      double getEvaluation()  
      java.lang.String getName()  
      int getNumberOfOrders()  
      double getSalary()  
      java.lang.String getShortReport()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Employee

        public Employee()
      • Employee

        public Employee​(java.lang.String fName,
                        java.lang.String mName,
                        java.lang.String lName)
    • 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()