package readinstruction;

import java.util.UUID;

/**
 * Created by Karol on 2017-04-20.
 */
public class ReadInstructionImpl extends ReadInstruction {
    private int waitTime;

    public ReadInstructionImpl(UUID instructionId, int readAddres, int arrivalTime, boolean hasDeadline) {
        super(instructionId, readAddres, arrivalTime, hasDeadline);
    }

    public int read(int actualTime){
        this.waitTime = actualTime - super.getArrivalTime();
        return super.getReadAddres();
    }
}

@@ -237,16 +237,17 @@
 adAddres
+s
 , int ar
@@ -319,16 +319,17 @@
 adAddres
+s
 , arriva
@@ -488,16 +488,17 @@
 adAddres
+s
 ();%0A    

Fix typo