private int finishReservations() {
    	int resFinished = 0;
    	
    	Iterator<ServerReservation> iterRes = reservTable.values().iterator();
    	while(iterRes.hasNext()) {
    		ServerReservation sRes = iterRes.next();
    		if(sRes.getActualFinishTime() <= GridSim.clock()) {
    			sRes.setStatus(ReservationStatus.FINISHED);
	        	resFinished++;
	        	iterRes.remove();
	        	expiryTable.put(sRes.getID(), sRes);
    		}
    	}

    	//------------- USED FOR DEBUGGING PURPOSES ONLY ------------------
    	if(resFinished > 0) {
    		visualizer.notifyListeners(this.get_id(), ActionType.SCHEDULE_CHANGED, true);
    	}
    	
    	return resFinished;
    }