public void setReadyProcess() {
        //Remove executed process
        Process checkProcess = null;
        for (int x = ready.size() - 1; x >= 0; x--) {
            checkProcess = ready.get(x);
            if (checkProcess.isExecuted()) {
                ready.remove(checkProcess);
            }
        }
        //add new processes
        for (Process p : processes) {
            if ((p.getArrivalTime() <= tick) && (!p.isExecuted()) && (!p.isBlocked()) ) {
                if (!this.ready.contains(p)) {
                    this.ready.add(p);
                }
            }
        }
    }