Class InputInstruction
java.lang.Object
dev.zemco.codegame.execution.instructions.InputInstruction
- All Implemented Interfaces:
IInstruction
Instruction that takes next value from
input source and copies it to the working
memory cell.- Author:
- Erik Zemčík
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(IExecutionContext executionContext) Takes next value frominput sourceand copies it to the workingmemory cell.
-
Constructor Details
-
InputInstruction
public InputInstruction()
-
-
Method Details
-
execute
Takes next value frominput sourceand copies it to the workingmemory cell.- Specified by:
executein interfaceIInstruction- Parameters:
executionContext- context on which the instruction is executed- Throws:
IllegalArgumentException- ifexecutionContextisnullInstructionExecutionException- if input source has no next value
-