public void setOutput(State state, String output)
    {
        /*
         * The null check occurs here but the input string can also
         * be checked before.
         */
        if(output == null)
            myMap.put(state, "");
        else
            myMap.put(state, output);
    }