Class ContextFileWriter

java.lang.Object
repast.simphony.scenario.data.ContextFileWriter

public class ContextFileWriter extends Object
Writes a context file from ContextData.
Author:
Nick Collier
  • Constructor Details

    • ContextFileWriter

      public ContextFileWriter()
  • Method Details

    • write

      public void write(File file, ContextData data) throws IOException
      Writes the specified ContextData to the specified file. The ContextData and its decendent subcontexts will be written.
      Parameters:
      file - the file to write to
      data - the ContextData to write
      Throws:
      IOException - if there is an error writing the data.