/** * Interface for an instruction to be executed */ public interface Instruction { /** * Prints out the text * that represents this SaM instruction */ String toString(); /** * Sets the System object for this instruction */ void setSystem(Sys sys); /** * Sets the symbol table this instruction should use */ public void setTable(SymbolTable st); /** * Executes the instruction */ void exec() throws SystemException; }