public void trackRoomCheckIn(int roomId,int visitorId, boolean isEntering, int time ){
        if(!isEntering){
            visitorRoomMap.updateVisitorRoomEntry(visitorId, roomId, time);
            String key = String.valueOf(roomId)+String.valueOf(visitorId);
            Tracker tracker = new Tracker();
            tracker.setVisitorId(visitorId);
            tracker.setRoomId(roomId);
            tracker.setStartEndTime(visitorRoomMap.getStartEndTime(visitorId,roomId));
            roomCheckInTracker.put(Integer.valueOf(key),tracker);
            ArrayList<Tracker> listOfTrackers;
            if(!allVisitorsOfRoom.containsKey(Integer.valueOf(key)/10)) {
                listOfTrackers = new ArrayList<Tracker>();
            }
            else{
                listOfTrackers = allVisitorsOfRoom.get(Integer.valueOf(key)/10);
            }
            listOfTrackers.add(tracker);
            allVisitorsOfRoom.put(Integer.valueOf(key)/10, listOfTrackers);
        }
        else {
            visitorRoomMap.addNewVisitorRoomEntry(visitorId, roomId, time, 9999);
        }
    }