cs4099
Class StateWriter

java.lang.Object
  extended by cs4099.StateWriter

public class StateWriter
extends java.lang.Object

The StateWriter outputs a representation of a state to an XML file so that it can be read at a later time.

Author:
David Newton
See Also:
State

Constructor Summary
StateWriter()
          Constructor (empty).
 
Method Summary
 void writeState(State state)
          Writes a state to the file "./dump.xml" in the expected XML format, so that it can be restored by using the Open command.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateWriter

public StateWriter()
Constructor (empty).

Method Detail

writeState

public void writeState(State state)
Writes a state to the file "./dump.xml" in the expected XML format, so that it can be restored by using the Open command.

Parameters:
state - The state to write to the file.