stella.sql
Class Statistics
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
mysql.AbstractSql
stella.sql.Statistics
- All Implemented Interfaces:
- Cloneable, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying
public class Statistics
- extends AbstractSql
We get some statistic information stored in the db.
|
Field Summary |
static String |
DEFPASSWORD
The key to the password for db-acces if not default. |
static String |
DEFUSERNAME
The key to the user name for db-acces if not default. |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
DEFUSERNAME
public static final String DEFUSERNAME
- The key to the user name for db-acces if not default.
- See Also:
- Constant Field Values
DEFPASSWORD
public static final String DEFPASSWORD
- The key to the password for db-acces if not default.
- See Also:
- Constant Field Values
Statistics
public Statistics()
getExposureTimeSum
public double getExposureTimeSum(Date night)
- Get the sum of all exposure times at a given night in seconds.
- Parameters:
night - midnight of the day in question.
getScienceTimeSum
public double getScienceTimeSum(Date night)
- Get the sum of all scientific times at a given night in seconds.
getNightCount
public double getNightCount(Date night,
double solz)
- Get the maximum time for sun below horizon at that night.
getRoofOpenCount
public double getRoofOpenCount(Date night)
- Get the roof-open time at that night.
getEnvCount
public double getEnvCount(Date night,
String addsel)
- Get the roof-open time at that night.
getExpSum
private double getExpSum(Date night,
String addsel)