Class OutputInstruction
java.lang.Object
dev.zemco.codegame.execution.instructions.OutputInstruction
- All Implemented Interfaces:
IInstruction
Instruction that emits current value in working
memory cell to output sink.- Author:
- Erik Zemčík
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(IExecutionContext executionContext) Emits current value in workingmemory celltooutput sink.
-
Constructor Details
-
OutputInstruction
public OutputInstruction()
-
-
Method Details
-
execute
Emits current value in workingmemory celltooutput sink.- Specified by:
executein interfaceIInstruction- Parameters:
executionContext- context on which the instruction is executed- Throws:
IllegalArgumentException- ifexecutionContextisnullInstructionExecutionException- if workingmemory cellhas no value oroutput sinkrejects the value
-