TestState
Package Class Tree Deprecated Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD Class TestState
java.lang.Object
|
+--TestState
public class TestState extends java.lang.Object Assignment 3 - COMP2011 Session 2, 2003. Don't change this file. (For Stage 1, the only file you need to edit is State.java) Constructor Summary TestState() Method Summary static char[][] get_initial_map(java.io.BufferedReader in) Read map of environment from standard input. static int get_instruction(java.io.BufferedReader in) Get next instruction from standard input. static void main(java.lang.String[] args) Apply instructions to environment and print final state. Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Constructor Detail TestState
public TestState() Method Detail get_initial_map
public static char[][] get_initial_map(java.io.BufferedReader in) Read map of environment from standard input. get_instruction
public static int get_instruction(java.io.BufferedReader in) Get next instruction from standard input. main
public static void main(java.lang.String[] args) Apply instructions to environment and print final state. Read the initial state of the environment from standard input. Then call the apply() method for each instruction 'L','R','F','C','O' or 'B' as it is read from standard input (note: 'P' and 'I' instructions are ignored). After all instructions have been read, print the final state of the environment. Package Class Tree Deprecated Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD