hydroScalingAPI.io
Class BasinsLogReader

java.lang.Object
  extended by hydroScalingAPI.io.BasinsLogReader

public class BasinsLogReader
extends java.lang.Object

This Class reads the .log file where locations of previously extracted basins are stored

Author:
Ricardo Mantilla

Constructor Summary
BasinsLogReader(java.io.File bl)
          Creates a new instance of BasinsLogReader
 
Method Summary
 void addBasinToFile(java.lang.String newBasin)
          Appends a new x,y and description for a basin outlet to the .log file
 java.lang.String[] getPresetBasins()
          This method delivers the elements in the .log file as an array of Strings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasinsLogReader

public BasinsLogReader(java.io.File bl)
                throws java.io.IOException
Creates a new instance of BasinsLogReader

Parameters:
bl - A file pointing to the location of the .log file
Throws:
java.io.IOException - Captures problems in the file format
Method Detail

getPresetBasins

public java.lang.String[] getPresetBasins()
This method delivers the elements in the .log file as an array of Strings

Returns:
Returns the list of basins in the .log file.

addBasinToFile

public void addBasinToFile(java.lang.String newBasin)
                    throws java.io.IOException
Appends a new x,y and description for a basin outlet to the .log file

Parameters:
newBasin - A String containing a new x,y and description for a basin outlet to be written into the .log file
Throws:
java.io.IOException - Captures errors during .log file rewriting.


CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.