package readinstruction;

import java.util.UUID;

/**
 * Created by Karol on 2017-04-20.
 */
public class ReadInstructionImpl extends ReadInstruction {
    public ReadInstructionImpl(UUID instructionId, int readAddres, int arrivalTime, boolean hasDeadline) {
        super(instructionId, readAddres, arrivalTime, hasDeadline);
    }
}

@@ -145,16 +145,43 @@
 ction %7B%0A
+    private int waitTime;%0A%0A
     publ
@@ -352,11 +352,154 @@
 );%0A    %7D
+%0A%0A    public int read(int actualTime)%7B%0A        this.waitTime = actualTime - super.getArrivalTime();%0A        return super.getReadAddres();%0A    %7D
 %0A%7D%0A

Implement read method for ReadInstructionImpl