public class RollOverWatch extends StopWatch
getRollOverTime().This stop-watch will be used mainly for recording observation time, either total or user dependend. The roll-over time provides a convenient way to allow user-share depending target selection on variable time-basis.
Observation time is the time during
roof-open times on STELLA. User time is the time a target dedicated to a
certain user is selected. There might be a short time lag between total
observation time and the added-up user time.
A bunch of observation time instances is normally handled in a
Observing trigger, which might reset these stop watches depending
on their KEY_ROLLOVERTIME. User-depending observation time is
normally handled in in a TargetUser parameter.
Note that all these roll-over watches are
members of the parental parameter cluster and might be queried from the
outside.
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static long |
DEFROLLOVERTIME
The default roll-over time.
|
static String |
KEY_FLAVOUR
A key defining the flavour of this watch, helping other parameters to
handle this watch.
|
static String |
KEY_ROLLOVERTIME
A key defining the roll-over time.
|
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWNKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
RollOverWatch(Map prop)
Constructs a new observation time.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFlavour()
Returns the flavour of this roll-over watch.
|
long |
getRollOverTime()
Returns the roll-over time in ms.
|
getFormatted, getValue, isCounting, preserve, registerParameter, rescanned, reset, restart, restore, setValue, start, stopget, setcreateParameter, delivers, exit, getFormatted, getName, getPreserveFile, getString, getString, init, overrideDefaultName, register, setName, toStringclone, 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, setObject, setProperties, setProperty, stringPropertiesequals, 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, stringPropertiesinitexitreloadpublic static final String KEY_ROLLOVERTIME
public static final String KEY_FLAVOUR
private static final long DEFROLLOVERTIME
public RollOverWatch(Map prop)
KEY_ROLLOVERTIME
should point to a time in ms. Default flavour KEY_FLAVOUR
is none.public long getRollOverTime()
StopWatch.reset() method.public String getFlavour()
WatchControllers to distinguish between roll-over watches
that should be controlled within them or left alone.KEY_FLAVOUR key. Might be null.