package cloud.cluster.sim.clustersimulator.dto;

public class Vm {
    private int requestId;
    private double startTime;
    private double endTime;

    public Vm() {
    }

    public Vm(int requestId, double startTime, double endTime) {
        this.requestId = requestId;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public int getRequestId() {
        return requestId;
    }

    public void setRequestId(int requestId) {
        this.requestId = requestId;
    }

    public double getStartTime() {
        return startTime;
    }

    public void setStartTime(double startTime) {
        this.startTime = startTime;
    }

    public double getEndTime() {
        return endTime;
    }

    public void setEndTime(double endTime) {
        this.endTime = endTime;
    }

}

package cloud.cluster.sim.clustersimulator.dto;

public class Vm {
    private int requestId;
    private double taskStartTime;
    private double taskEndTime;
    private double taskArrivalTime;

    public Vm() {
    }

    public Vm(int requestId, double taskStartTime, double taskEndTime) {
        this.requestId = requestId;
        this.taskStartTime = taskStartTime;
        this.taskEndTime = taskEndTime;
    }

    public int getRequestId() {
        return requestId;
    }

    public void setRequestId(int requestId) {
        this.requestId = requestId;
    }

    public double getTaskStartTime() {
        return taskStartTime;
    }

    public void setTaskStartTime(double taskStartTime) {
        this.taskStartTime = taskStartTime;
    }

    public double getTaskEndTime() {
        return taskEndTime;
    }

    public void setTaskEndTime(double taskEndTime) {
        this.taskEndTime = taskEndTime;
    }

    public double getTaskArrivalTime() {
        return taskArrivalTime;
    }

    public void setTaskArrivalTime(double taskArrivalTime) {
        this.taskArrivalTime = taskArrivalTime;
    }
}

Refactor Vm class and add task arrival time field.