Interface Instruction
public interface Instruction
An instruction describes something to be done. This can be displaying a page, sending an email or
cooking a delicious meal. It summarises only the most important key data to turn the instruction
into action, but it never executes the instruction.
Instruction
s will be executed by
realisations of InstructionExecutor.
Instruction
s describe their objective in a very abstract way. It is up to the
InstructionExecutor to decide how to act upon this instruction in a manner that fits with
the current environment. An Instruction
does not specify the execution process as such;
it only describes the goal to be reached and provides the necessary key data therefore.
Instruction
s are intended as immutable value objects. Implementations must
provide useful equals() and hashCode() methods. A decent toString() implementation is encouraged.
-
Method Summary
-
Method Details
-
getType
String getType()
-