public class AcceleratedJd extends Jd
CurrentTime as a registered variable. Is meant as a convenience
replacement for the more generic CurrentTime global. Note that this
class can be easily tailored for the use of mjd. Providing a
properties object which a specifies the key Jd.KEY_BASEJD pointing to
40587 makes the jd global produce mjd. Note that the key
Jd.KEY_BASEJD points to the jd, mjd, tjd, of Jan. 1st 1970, 0h00 GMT.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private long |
accel
The date when the acceleration starts.
|
private static double |
DEFACCELERATE
The default jd of Jan.
|
private static DateFormat |
DEFDATEFORMAT
The default date formatter.
|
static String |
KEY_ACCELERATE
The key mapping to the jd of Jan.
|
static String |
KEY_DATEFORMAT
The key mapping to the date format to use.
|
static String |
KEY_OFFSET
The key mapping to the starting time offset of the accelerated time.
|
private long |
offset
The offset date, parsed from the offset given.
|
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 |
|---|
AcceleratedJd(Map<String,String> define)
Constructs a new global representing julian date.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
getValue()
Returns the actual jd as a double.
|
double |
rescanned(String key,
String old,
String newval)
If offset or date format change, we act.
|
getAscendTime, getJd, getJd, isCompleted, registerParameter, setValueget, setcreateParameter, delivers, exit, getFormatted, 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, waitreloaddefaultBoolean, 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, stringPropertiesinitpublic static final String KEY_ACCELERATE
public static final String KEY_OFFSET
public static final String KEY_DATEFORMAT
private static final double DEFACCELERATE
private static final DateFormat DEFDATEFORMAT
private final long accel
private long offset
public AcceleratedJd(Map<String,String> define)
Jd.KEY_BASEJD to 40587 makes this
object produce mjd.