()
| 34 | * to the employee. |
| 35 | */ |
| 36 | public void escalateAndReassign() { |
| 37 | if (currentCall != null) { |
| 38 | /* escalate call */ |
| 39 | currentCall.incrementRank(); |
| 40 | CallHandler.getInstance().dispatchCall(currentCall); |
| 41 | |
| 42 | /* free the employee */ |
| 43 | currentCall = null; |
| 44 | } |
| 45 | |
| 46 | /* assign a new call */ |
| 47 | assignNewCall(); |
| 48 | } |
| 49 | |
| 50 | /* Assign a new call to an employee, if the employee is free. */ |
| 51 | public boolean assignNewCall() { |
nothing calls this directly
no test coverage detected