Class ManagerFileGrids
java.lang.Object
simpaths.model.decisions.ManagerFileGrids
CLASS TO MANAGE INTERACTIONS BETWEEN THE IO GRIDS AND THE LOCAL FILE SYSTEM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidformattedWrite(Grids grids, int aa) static voidMETHOD TO READ IN DATA TO GRIDSstatic voidunformattedReadWrite(Grid grid, String method, String directory, String fileName) METHOD TO READ/WRITE UNFORMATTED DATA BETWEEN A GRID OBJECT AND A SYSTEM FILEstatic voidunformattedWrite(Grids grids) METHOD TO WRITE UNFORMATTED DATA TO FILEstatic voidunformattedWrite(Grids grids, boolean flagIntermediate)
-
Constructor Details
-
ManagerFileGrids
public ManagerFileGrids()
-
-
Method Details
-
read
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
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
-
formattedWrite
-
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 frommethod- string = "read" for reading, and write otherwisedirectory- directory of file to interact withfileName- name of file to interact with- Throws:
IOException- exception encountered while executing read/write routine
-