Interface IPlan
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddInstruction(Instruction instruction)Adds an instruction to the instructionList.List<Instruction>getInstructionList()Returns the list of instructions contained in a instructionList.voidremoveInstruction(int index)Removes the i-th instruction from the instructionList.voidremoveInstruction(Instruction instruction)Removes san instruction from a instructionList.
-
-
-
Method Detail
-
addInstruction
void addInstruction(Instruction instruction)
Adds an instruction to the instructionList.- Parameters:
instruction- The Instruction to add
-
removeInstruction
void removeInstruction(int index)
Removes the i-th instruction from the instructionList.- Parameters:
index- Index of instruction to remove
-
removeInstruction
void removeInstruction(Instruction instruction)
Removes san instruction from a instructionList.- Parameters:
instruction- Instruction to remove
-
getInstructionList
List<Instruction> getInstructionList()
Returns the list of instructions contained in a instructionList.- Returns:
- List of instructions
-
-