public static Event teamBuilding(Employee e) { Project p = e.getWorkingProject(); if (p != null) { Map<Skill, Employee> emList = p.getSkill_employeeMap(); for (Skill sk : emList.keySet()) { if (emList.get(sk) != null) { emList.get(sk).getTeamBuilding(); } } return Event.TEAM_BUILDING_EXERCISE; } return Event.NO_EVENT; }
public static Event redundancies(Employee e, Company c) throws EmployeeNotExist { Project p = e.getWorkingProject(); List<Employee> removeEmp = new ArrayList(); if (p != null) { Map<Skill, Employee> skill = p.getSkill_employeeMap(); for (Skill sk : skill.keySet()) { if (skill.get(sk) != null && skill.get(sk).equals(e)) { c.addEmployeeToRemoveList(e); } else if (skill.get(sk) != null) { skill.get(sk).sad(); } } for (Employee employee : removeEmp) { Utilities.getInstance().unassignComputerToEmployee(c, employee); c.removeEmployee(employee); } return Event.REDUNDANCIES; } return Event.NO_EVENT; }