|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.io.MetaGauge
public class MetaGauge
Manages the Gauge-type data object
| Constructor Summary | |
|---|---|
MetaGauge(DB_Register register)
Creates a new instance of MetaGauge |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
The comparison method |
java.io.File |
getFileLocation()
The original Gauge-type file location |
java.lang.String |
getLabel()
Returns a string with an identifier code for the Station |
visad.RealTuple |
getPositionTuple()
Creates a RealTuple to be plotted in a Display |
java.lang.Object |
getProperty(java.lang.String key)
Returns the desired property. |
visad.Tuple |
getTextTuple()
Creates a Tuple to be plotted in a Display containing a text
label |
double[][] |
getTimeAndData()
Returns a 2 by n array where n is the number of data entries for the Gauge. |
static void |
main(java.lang.String[] args)
Tests for the class |
java.lang.String |
toString()
Returns a description of the Gauge. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MetaGauge(DB_Register register)
register - Takes in a registry created by the GaugeReader| Method Detail |
|---|
public java.lang.Object getProperty(java.lang.String key)
Note: the brackets must be included.[code]
[agency]
[type]
[site name]
[stream name]
[county]
[state]
[data source]
[latitude (deg:min:sec)]
[longitude (deg:min:sec)]
[altitude ASL (m)]
[drainage area (km^2)]
[data units]
[data accuracy]
[file location]
key - The desired property
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - The object to be compared with
public java.io.File getFileLocation()
File pointing to the Gauge filepublic java.lang.String getLabel()
public visad.RealTuple getPositionTuple()
throws visad.VisADException,
java.rmi.RemoteException
RealTuple to be plotted in a Display
RealTuple
visad.VisADException - Captures errors while creating the RealTuple
java.rmi.RemoteException - Captures errors while creating the RealTuple
public visad.Tuple getTextTuple()
throws visad.VisADException,
java.rmi.RemoteException
Tuple to be plotted in a Display containing a text
label
Tuple
visad.VisADException - Captures errors while creating the Tuple
java.rmi.RemoteException - Captures errors while creating the Tuple
public double[][] getTimeAndData()
throws java.io.IOException
java.io.IOException - Captures errors while reading the file to retrive the datapublic static void main(java.lang.String[] args)
args - the command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.