package readinstruction;

import java.util.UUID;

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

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

package readinstruction;

import java.util.UUID;

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

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


    public UUID getInstructionId() {
        return instructionId;
    }

    public int getReadAddres() {
        return readAddres;
    }

    public int getArrivalTime() {
        return arrivalTime;
    }

    public boolean isHasDeadline() {
        return hasDeadline;
    }
}

Implement getters for ReadInstruction abstract class