package employees;

import util.*;

public class NonexemptEmployee extends Employee {

  private double hours;
  
  public NonexemptEmployee() {
  }
  public NonexemptEmployee(String firstName, String lastName) {
    super(firstName, lastName);
  }
  public NonexemptEmployee(String firstName, String lastName, int dept) {
    super(firstName, lastName, dept);
  }
  public NonexemptEmployee(String firstName, String lastName, double payRate, double hours)
         throws InvalidValueException {
    super(firstName, lastName, payRate);
    setHours(hours);
  }
  public NonexemptEmployee(String firstName, String lastName, int dept, double payRate, double hours)
         throws InvalidValueException {
    super(firstName, lastName, dept, payRate);
    setHours(hours);
  }  

  public double getHours() {
    return hours;
  }
  public void setHours(double hours) {
    this.hours = hours;
  }

  public String getPayInfo() {
    return "Non-Exempt Employee " + getId() + " dept " + getDept() + 
           " " + getFirstName() + " " + getLastName() + 
           " paid " + getPayRate() * hours;
  }
}
