/** * Interface for a generic program object. * The program object contains the symbol * table for the program and the instructions * to execute. It is generated by SamAssembler * and sent to the processor for execution */ public interface Program { /** * Add instruction to the program */ void addInst(Instruction ins); /** * Add multiple instructions to the program */ void addInst(Instruction[] ins); /** * Get instruction at specificed location */ Instruction getInst(int pos); /** * Gets total number of instructions in program */ int getLength(); /** * Returns the symbol table */ SymbolTable getTable(); /** * Sets the symbol table */ void setTable(SymbolTable table); }