Class ManagerFileGrids

java.lang.Object
simpaths.model.decisions.ManagerFileGrids

public class ManagerFileGrids extends Object
CLASS TO MANAGE INTERACTIONS BETWEEN THE IO GRIDS AND THE LOCAL FILE SYSTEM
  • Constructor Details

    • ManagerFileGrids

      public ManagerFileGrids()
  • Method Details

    • read

      public static void read(Grids grids)
      METHOD TO READ IN DATA TO GRIDS
      Parameters:
      grids - refers to the look-up table that stores IO solutions (the 'grids') THE MANAGER IS ACCESSED FROM ManagerPopulateGrids
    • unformattedWrite

      public static void unformattedWrite(Grids grids)
      METHOD TO WRITE UNFORMATTED DATA TO FILE
      Parameters:
      grids - refers to the look-up table that stores IO solutions (the 'grids') THE MANAGER IS ACCESSED FROM ManagerPopulateGrids
    • unformattedWrite

      public static void unformattedWrite(Grids grids, boolean flagIntermediate)
    • formattedWrite

      public static void formattedWrite(Grids grids, int aa)
    • unformattedReadWrite

      public static void unformattedReadWrite(Grid grid, String method, String directory, String fileName) throws IOException
      METHOD TO READ/WRITE UNFORMATTED DATA BETWEEN A GRID OBJECT AND A SYSTEM FILE
      Parameters:
      grid - object to write to / read from
      method - string = "read" for reading, and write otherwise
      directory - directory of file to interact with
      fileName - name of file to interact with
      Throws:
      IOException - exception encountered while executing read/write routine