|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.mainGUI.objects.GaugesManager
public class GaugesManager
This class manages all the information related to Gauges in the database. It runs independent threads that read the information from the Gauge-type files
| Constructor Summary | |
|---|---|
GaugesManager(GUI_InfoManager infoManager,
DataBaseEngine dataBase)
Creates a new instance of GaugesManager |
|
| Method Summary | |
|---|---|
void |
addData(java.lang.Object[] thisRegister)
Pushes data into the DataBaseEngine |
MetaGauge[] |
findGauges(java.util.Vector categories,
java.util.Vector values,
java.util.Vector conditions)
Query to the DataBaseEngine for Gauges
that meet a specified group of conditions |
java.util.Vector |
getAgencies()
Query to the DataBaseEngine for unique
Gauge agencies |
java.util.Vector |
getCodes()
Query to the DataBaseEngine for unique
Gauge codes |
java.util.Vector |
getCounties()
Query to the DataBaseEngine for unique
Gauge county |
java.lang.Double |
getEasternmostLat()
Query to the DataBaseEngine for the
easternmost longitude of the gauges in the CUENCAS database |
MetaGauge[] |
getGauge(java.lang.String code)
Retereives a group of gauges from the DataBaseEngine. |
MetaGauge |
getGauge(java.lang.String code,
java.lang.String type)
Retereives a particual Gauge from the DataBaseEngine. |
java.lang.Double |
getNorthernmostLat()
Query to the DataBaseEngine for the
northernmost latitude of the gauges in the CUENCAS database |
java.lang.Double |
getSouthernmostLat()
Query to the DataBaseEngine for the
southernmost latitude of the gauges in the CUENCAS database |
java.util.Vector |
getStates()
Query to the DataBaseEngine for unique
Gauge state |
java.util.Vector |
getStreams()
Query to the DataBaseEngine for unique
Gauge associated streams |
java.util.Vector |
getTypes()
Query to the DataBaseEngine for unique
Gauge Types |
java.lang.Double |
getWesternmostLat()
Query to the DataBaseEngine for the
westernmost longitude of the gauges in the CUENCAS database |
boolean |
isLoaded()
Indcates if the GaugesManager has completed loading infomation |
static void |
main(java.lang.String[] args)
Test for the class |
void |
threadReport(java.lang.String threadName,
java.lang.String status)
Updates the status of a Thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GaugesManager(GUI_InfoManager infoManager,
DataBaseEngine dataBase)
infoManager - The GUI_InfoManager to which the
GaugesManager is associateddataBase - The DataBaseEngine that stores and manages
the data| Method Detail |
|---|
public void addData(java.lang.Object[] thisRegister)
DataBaseEngine
thisRegister - The register to be added to the database
public MetaGauge getGauge(java.lang.String code,
java.lang.String type)
DataBaseEngine. Note that the code and the type
uniquely characterize a Gauge.
code - The code of the gauge to retreivetype - The type of the gauge to retreive
MetaGaugepublic MetaGauge[] getGauge(java.lang.String code)
DataBaseEngine. Note that the several types
of Gauge can be associated to a given code.
code - The code of the gauges to retreive
MetaGauges
public MetaGauge[] findGauges(java.util.Vector categories,
java.util.Vector values,
java.util.Vector conditions)
DataBaseEngine for Gauges
that meet a specified group of conditions
categories - The categories to use in the searchvalues - The value assiciated to the categoryconditions - The condition to match (e.g. equal to, greater than, smaller than, etc)
DB_Register that match the
querypublic java.util.Vector getCodes()
DataBaseEngine for unique
Gauge codes
Vector listing unique codespublic java.util.Vector getAgencies()
DataBaseEngine for unique
Gauge agencies
Vector listing unique agenciespublic java.util.Vector getTypes()
DataBaseEngine for unique
Gauge Types
Vector listing unique typespublic java.util.Vector getStreams()
DataBaseEngine for unique
Gauge associated streams
Vector listing unique streamspublic java.util.Vector getCounties()
DataBaseEngine for unique
Gauge county
Vector listing unique countiespublic java.util.Vector getStates()
DataBaseEngine for unique
Gauge state
Vector listing unique statespublic java.lang.Double getSouthernmostLat()
DataBaseEngine for the
southernmost latitude of the gauges in the CUENCAS database
public java.lang.Double getNorthernmostLat()
DataBaseEngine for the
northernmost latitude of the gauges in the CUENCAS database
public java.lang.Double getWesternmostLat()
DataBaseEngine for the
westernmost longitude of the gauges in the CUENCAS database
public java.lang.Double getEasternmostLat()
DataBaseEngine for the
easternmost longitude of the gauges in the CUENCAS database
public void threadReport(java.lang.String threadName,
java.lang.String status)
threadName - The Thread name to be checkedstatus - thepublic boolean isLoaded()
public 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.