|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.mainGUI.objects.LocationsManager
public class LocationsManager
This class manages all the information related to Locations in the database. It runs independent threads that read the information from the Location-type files
| Constructor Summary | |
|---|---|
LocationsManager(GUI_InfoManager infoManager,
DataBaseEngine dataBase)
Creates a new instance of LocationsManager |
|
| Method Summary | |
|---|---|
void |
addData(java.lang.Object[] thisRegister)
Pushes data into the DataBaseEngine |
MetaLocation[] |
findLocations(java.util.Vector categories,
java.util.Vector values,
java.util.Vector conditions)
Query to the DataBaseEngine for Locations
that meet a specified group of conditions |
java.util.Vector |
getAgencies()
Query to the DataBaseEngine for unique
Location agencies |
java.util.Vector |
getCounties()
Query to the DataBaseEngine for unique
Location counties |
java.lang.Double |
getEasternmostLat()
Query to the DataBaseEngine for the
easternmost longitude of the locations in the CUENCAS database |
MetaLocation[] |
getLocation(java.lang.String code)
Retereives a group of locations from the DataBaseEngine. |
MetaLocation |
getLocation(java.lang.String code,
java.lang.String type)
Retereives a particual Location from the DataBaseEngine. |
java.util.Vector |
getNames()
Query to the DataBaseEngine for unique
Location names |
java.lang.Double |
getNorthernmostLat()
Query to the DataBaseEngine for the
northernmost latitude of the locations in the CUENCAS database |
java.lang.Double |
getSouthernmostLat()
Query to the DataBaseEngine for the
southernmost latitude of the locations in the CUENCAS database |
java.util.Vector |
getStates()
Query to the DataBaseEngine for unique
Location states |
java.util.Vector |
getTypes()
Query to the DataBaseEngine for unique
Location types |
java.lang.Double |
getWesternmostLat()
Query to the DataBaseEngine for the
westernmost longitude of the locations in the CUENCAS database |
boolean |
isLoaded()
Indcates if the LocationsManager 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 LocationsManager(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 MetaLocation getLocation(java.lang.String code,
java.lang.String type)
DataBaseEngine. Note that the code and the type
uniquely characterize a Location.
code - The code of the location to retreivetype - The type of the location to retreive
MetaLocationpublic MetaLocation[] getLocation(java.lang.String code)
DataBaseEngine. Note that the several types
of Location can be associated to a given code.
code - The code of the locations to retreive
MetaLocations
public MetaLocation[] findLocations(java.util.Vector categories,
java.util.Vector values,
java.util.Vector conditions)
DataBaseEngine for Locations
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 getNames()
DataBaseEngine for unique
Location names
Vector listing unique namespublic java.util.Vector getAgencies()
DataBaseEngine for unique
Location agencies
Vector listing unique agenciespublic java.util.Vector getTypes()
DataBaseEngine for unique
Location types
Vector listing unique typespublic java.util.Vector getCounties()
DataBaseEngine for unique
Location counties
Vector listing unique countiespublic java.util.Vector getStates()
DataBaseEngine for unique
Location states
Vector listing unique statespublic java.lang.Double getSouthernmostLat()
DataBaseEngine for the
southernmost latitude of the locations in the CUENCAS database
public java.lang.Double getNorthernmostLat()
DataBaseEngine for the
northernmost latitude of the locations in the CUENCAS database
public java.lang.Double getWesternmostLat()
DataBaseEngine for the
westernmost longitude of the locations in the CUENCAS database
public java.lang.Double getEasternmostLat()
DataBaseEngine for the
easternmost longitude of the locations 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.