Skip to content
Snippets Groups Projects
Commit e360b3c0 authored by hadi's avatar hadi
Browse files

Instruction Set file

parent 245e8914
Branches assign2.1
No related tags found
1 merge request!4Fuzzer structure
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment