|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmain.DBAccess
public class DBAccess
Provides access to and functionality for the database containing the candidate sets.
Functionality requires the postgresql package to be installed.
Field Summary | |
---|---|
static java.lang.String[] |
filters
|
static java.lang.String |
url
|
Constructor Summary | |
---|---|
DBAccess()
|
Method Summary | |
---|---|
static java.util.Vector |
getAllCandInfo(java.sql.Connection con)
read all candidate entries |
static java.util.Vector |
getAllCandInfo(java.sql.Connection con,
java.util.Vector sets)
read all candidate entries in the given sets |
static java.util.Vector |
getAllGroupNames(java.sql.Connection con)
Gets the all the group names in the database. |
static java.util.Vector |
getAllStandFields(java.sql.Connection con)
gets all the standard star fields (name, ra, dec) |
static Sixty |
getCandDEC(java.sql.Connection con,
java.lang.String scpName)
Gets the DEC of a candidate |
static java.util.Vector |
getCandDEC(java.sql.Connection con,
java.util.Vector scpNames)
Gets the DEC of specified candidates |
static CandInfo |
getCandInfo(java.sql.Connection con,
java.lang.String cand)
read a candidate's entries |
static Sixty |
getCandRA(java.sql.Connection con,
java.lang.String scpName)
Gets the RA of a candidate |
static java.util.Vector |
getCandRA(java.sql.Connection con,
java.util.Vector scpNames)
Gets the RA of specified candidates |
static java.util.Vector |
getCandRaDec(java.sql.Connection con)
gets all the candidates positions (name, ra, dec) |
static java.util.Vector |
getCandScpNames(java.sql.Connection con)
Gets the scp names of all the candidates in the database |
static java.util.Vector |
getCandScpNames(java.sql.Connection con,
boolean showAll)
Gets the scp names of all the candidates in the database |
static double |
getFullPriority(java.sql.Connection con,
java.lang.String cand,
java.lang.String type,
java.lang.String filt)
Gets the priority (0.0-10.0 or more) for a given candidate, type, and filter as a double. |
static double |
getFullPriority(java.sql.Connection con,
java.lang.String cand,
java.lang.String type,
java.lang.String filt,
boolean noObservers)
Gets the priority (0.0-10.0 or more) for a given candidate, type, and filter as a double. |
static java.lang.String |
getGroupName(java.sql.Connection con,
java.lang.String site)
get the default group name for a site. |
static int |
getOverAllPriority(java.sql.Connection con,
java.lang.String cand)
Gets the over all priority for a given candidate. |
static java.util.Hashtable |
getPhotInfo(java.sql.Connection con)
Gets all the info about the photometric stands in the db |
static java.util.Vector |
getPhotStands(java.sql.Connection con)
gets all the photometric standard stars (name, ra, dec) |
static void |
getSiteParams(java.sql.Connection con,
java.lang.String site,
java.util.Hashtable hash)
Reads the database and returns the elevation of a telescope scope. |
static float |
getSiteParams(java.sql.Connection con,
java.lang.String site,
java.util.Vector latAndLong)
Reads the database and returns the elevation of a telescope scope. |
static java.util.Vector |
getStandards(java.sql.Connection con,
double minRA,
double maxRA,
double minDEC,
double maxDEC)
gets all the standard stars in a range (name, ra, dec). |
static java.util.Vector |
getTelescopes(java.sql.Connection con)
Gets the available telescopes |
static java.lang.String |
getTimeZone(java.sql.Connection con,
java.lang.String site)
get the default TimeZone ID for a given site. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String url
public static java.lang.String[] filters
Constructor Detail |
---|
public DBAccess()
Method Detail |
---|
public static java.util.Vector getTelescopes(java.sql.Connection con)
public static java.util.Vector getCandScpNames(java.sql.Connection con)
public static java.util.Vector getCandScpNames(java.sql.Connection con, boolean showAll)
public static java.util.Vector getAllGroupNames(java.sql.Connection con)
public static Sixty getCandRA(java.sql.Connection con, java.lang.String scpName)
public static java.util.Vector getCandRA(java.sql.Connection con, java.util.Vector scpNames)
public static Sixty getCandDEC(java.sql.Connection con, java.lang.String scpName)
public static java.util.Vector getCandDEC(java.sql.Connection con, java.util.Vector scpNames)
public static float getSiteParams(java.sql.Connection con, java.lang.String site, java.util.Vector latAndLong)
public static void getSiteParams(java.sql.Connection con, java.lang.String site, java.util.Hashtable hash)
public static double getFullPriority(java.sql.Connection con, java.lang.String cand, java.lang.String type, java.lang.String filt)
public static double getFullPriority(java.sql.Connection con, java.lang.String cand, java.lang.String type, java.lang.String filt, boolean noObservers)
public static java.lang.String getGroupName(java.sql.Connection con, java.lang.String site)
public static CandInfo getCandInfo(java.sql.Connection con, java.lang.String cand)
public static java.util.Vector getAllCandInfo(java.sql.Connection con)
public static java.util.Vector getAllCandInfo(java.sql.Connection con, java.util.Vector sets)
public static java.lang.String getTimeZone(java.sql.Connection con, java.lang.String site)
public static java.util.Vector getAllStandFields(java.sql.Connection con)
public static java.util.Vector getPhotStands(java.sql.Connection con)
public static java.util.Vector getStandards(java.sql.Connection con, double minRA, double maxRA, double minDEC, double maxDEC)
public static java.util.Vector getCandRaDec(java.sql.Connection con)
public static int getOverAllPriority(java.sql.Connection con, java.lang.String cand)
public static java.util.Hashtable getPhotInfo(java.sql.Connection con)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |