diff --git a/fuzzer/InstructionSet.java b/fuzzer/InstructionSet.java new file mode 100644 index 0000000000000000000000000000000000000000..461056fc5a8e63871e335a6a189fd1ca67fb76db --- /dev/null +++ b/fuzzer/InstructionSet.java @@ -0,0 +1,36 @@ +import java.util.ArrayList; + +public class InstructionSet{ + private int maxInstructions; + private ArrayList<Instruction> instructions; + public InstructionSet(int maxInstructions) { + this.maxInstructions = maxInstructions; + this.instructions = new ArrayList<Instruction>(); + } + + public void addInstruction(Instruction instruction){ + + } + + public ArrayList<Instruction> getInstructions() { + return this.instructions; + } + + @Override public String toString(){ + // convert all instructions to strings and append them with new line "\n" and return it + return ""; + } + + public void swapRows(int sourceIndex, int targetIndex){ + // fill if needed + } + + /** + * moves the row specified by sourceIndex at the location in instruction set specified by percentile + * @param sourceIndex + * @param percentile + */ + public void moveRowAtIndexToPercentile(int sourceIndex,int percentile){ + // fill if needed + } +} \ No newline at end of file