package readinstruction;

import java.util.UUID;

/**
 * Created by Karol on 2017-04-20.
 */
public abstract class ReadInstruction {
    private UUID instructionId;
    private int readAddress;
    private int arrivalTime;
    private boolean hasDeadline;

    public ReadInstruction (UUID instructionId, int readAddress, int arrivalTime, boolean hasDeadline){
        this.arrivalTime = arrivalTime;
        this.instructionId = instructionId;
        this.readAddress = readAddress;
        this.hasDeadline = hasDeadline;
    }


    public UUID getInstructionId() {
        return instructionId;
    }

    public int getReadAddress() {
        return readAddress;
    }

    public int getArrivalTime() {
        return arrivalTime;
    }

    public boolean hasDeadline() {
        return hasDeadline;
    }

    @Override
    public String toString(){
        return this.instructionId.toString() + "'" +
                this.readAddress + "'" +
                this.arrivalTime + "'" +
                this.hasDeadline + "'";
    }
}

@@ -1032,11 +1032,115 @@
 %22;%0A    %7D
+%0A%0A    public static ReadInstructionBuilder builder()%7B%0A        return new ReadInstructionBuilder();%0A    %7D
 %0A%7D%0A

Implement static builder method for ReadInstructionImpl