public class StatisticMaster extends SqlMaster
| Modifier and Type | Class and Description |
|---|---|
static class |
StatisticMaster.All |
static class |
StatisticMaster.Single |
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFJOIN
We have to query in a join with this additional where.
|
private static double |
DEFRISETWILIGHT
The default z solar toggle value.
|
private static double |
DEFSETTWILIGHT
The default z solar toggle value.
|
private static String |
DEFSOLHEIGHT
The default name of this value.
|
private static String |
DEFSTELLA
Default STELLA1 and STELLA2.
|
private static String |
DEFTIME
The default name of this value.
|
private HistorySql |
histsql
The history-db reference.
|
static String |
KEY_JOIN
We have to query in a join with this additional where.
|
static String |
KEY_RISETWILIGHT
The key to the good-weather toggle height of the sun.
|
static String |
KEY_SETTWILIGHT
The key to the good-weather toggle height of the sun.
|
static String |
KEY_SOLHEIGHT
The sol-height parameter.
|
static String |
KEY_STELLA
Statistics for these telescopes.
|
static String |
KEY_TIME
The time parameter.
|
private static long |
MIN5 |
private NightStatSql |
nightsql |
private ObserveSql |
observesql
The history-db reference.
|
private TelStatSql |
telsql |
private EnvironmentSql |
weathersql
The weather sql.
|
FIRSTSES, FIRSTWIFSIP, KEY_SET, KEY_SITE, KEY_SQLCONNECT, KEY_SQLPASSWORD, KEY_SQLUSERNAMEKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Constructor and Description |
|---|
StatisticMaster(Map<String,String> p) |
| Modifier and Type | Method and Description |
|---|---|
int |
all()
We scan all nights, first get all observing blocks, secondly check
if they are compatible with CCD Temp etc, if staed in my properties.
|
void |
init()
Initializes the obs-db.
|
int |
reduceNight(Date now)
We scan the given night, first get all observing blocks, secondly check
if they are compatible with CCD Temp etc, if staed in my properties.
|
defaultSql, exit, getMidnight, getNightId, getSetclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, 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, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultBoolean, 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, stringPropertiesprivate static final long MIN5
public static final String KEY_STELLA
public static final String KEY_TIME
public static final String KEY_SOLHEIGHT
public static final String KEY_SETTWILIGHT
public static final String KEY_RISETWILIGHT
public static final String KEY_JOIN
private static final String DEFSTELLA
private static final String DEFTIME
private static final String DEFSOLHEIGHT
private static final double DEFRISETWILIGHT
private static final double DEFSETTWILIGHT
private static final String DEFJOIN
private NightStatSql nightsql
private TelStatSql telsql
private ObserveSql observesql
private HistorySql histsql
private EnvironmentSql weathersql
public void init()
throws InitException
init in interface Initializableinit in class SqlMasterInitExceptionpublic int reduceNight(Date now) throws SQLException
SQLExceptionpublic int all()
throws SQLException
SQLException