hydroScalingAPI.util.fileUtilities
Class ChronoFile

java.lang.Object
  extended by hydroScalingAPI.util.fileUtilities.ChronoFile
All Implemented Interfaces:
java.lang.Comparable

public class ChronoFile
extends java.lang.Object
implements java.lang.Comparable

The CronoFile is an extension of a regular file that imposes an order scheme different to the alphabetical. This object handles files with extensions desribed in the Developer's manual for temporally changing raster fields

Author:
Ricardo Mantilla

Field Summary
 java.io.File fileName
          The File associated to this object
 
Constructor Summary
ChronoFile(java.io.File file, java.lang.String bN)
          Creates new chronoFile
 
Method Summary
 int compareTo(java.lang.Object obj)
          The compareTo method for this object
 java.util.Calendar getDate()
          Returns a Calendar object associated to the ChronoFile date
static void main(java.lang.String[] args)
          Tests for the class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileName

public java.io.File fileName
The File associated to this object

Constructor Detail

ChronoFile

public ChronoFile(java.io.File file,
                  java.lang.String bN)
Creates new chronoFile

Parameters:
file - The File to associate to this object
bN - The base name of the file
Method Detail

compareTo

public int compareTo(java.lang.Object obj)
The compareTo method for this object

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
obj - The object to be compared against
Returns:
A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

getDate

public java.util.Calendar getDate()
Returns a Calendar object associated to the ChronoFile date

Returns:
A Calendar

main

public static void main(java.lang.String[] args)
Tests for the class

Parameters:
args - The command line arguments


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.