/** * The Video interface allows the processor * to output data or to request input. If a video card * is not provided to the processor, SaM READ commands * will place a 0 on the stack, and WRITE commands will * not output any data */ public interface Video{ /** * Integer output from the processor * @param i The integer to be written */ void writeInt(int i); /** * String output from the processor * @param str The string to be written */ void writeString(String str); /** * Float output from the processor * @param f The float to be written */ void writeFloat(float f); /** * Char output from the processor * @param c The character to be written */ void writeChar(char c); /** * Request from the processor for an integer. * After prompting the user, the UI should return * the provided integer. * @return The integer that was inputted */ int readInt(); /** * Request from the processor for a float. * After prompting the user, the UI should return * the provided float. * @return The float that was inputted */ float readFloat(); /** * Request from the processor for a char. * After prompting the user, the UI should return * the provided char. * @return The char that was inputted */ char readChar(); /** * Request from the processor for a string. * After prompting the user, the UI should return * the provided string. * @return The string that was inputted */ String readString(); }