/
NikolayIvkin
/
TheAlgorithms
Обзор
Документация
Войти
/
NikolayIvkin
/
TheAlgorithms
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/com/thealgorithms/devutils/entities/ProcessDetails.java
67 строк
2 KB
doxxx
Refactor ProcessDetails and PreemptivePriorityScheduling (#5448)
11 сен 2024, 15:49
Не верифицирован
11 сен 2024, 15:49
648572a
Код
Авторство
О чём код?
package com.thealgorithms.devutils.entities; public class ProcessDetails { private String processId; private int arrivalTime; private int burstTime; private int waitingTime; private int turnAroundTime; private int priority; public ProcessDetails(final String processId, final int arrivalTime, final int burstTime, int priority) { this.processId = processId; this.arrivalTime = arrivalTime; this.burstTime = burstTime; this.priority = priority; } public ProcessDetails(final String processId, final int arrivalTime, final int burstTime) { this.processId = processId; this.arrivalTime = arrivalTime; this.burstTime = burstTime; } public String getProcessId() { return processId; } public int getArrivalTime() { return arrivalTime; } public int getBurstTime() { return burstTime; } public int getWaitingTime() { return waitingTime; } public int getTurnAroundTimeTime() { return turnAroundTime; } public int getPriority() { return priority; } public void setProcessId(final String processId) { this.processId = processId; } public void setArrivalTime(final int arrivalTime) { this.arrivalTime = arrivalTime; } public void setBurstTime(final int burstTime) { this.burstTime = burstTime; } public void setWaitingTime(final int waitingTime) { this.waitingTime = waitingTime; } public void setTurnAroundTimeTime(final int turnAroundTime) { this.turnAroundTime = turnAroundTime; } }