public class AcceleratedTime extends SettableTime
AbstractValue base
class. Does not need any registereed additional Parameters.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private long |
accel
The date when the acceleration starts.
|
static String |
ACCELSYSPROP
If acceleration is set, we export to the system properties.
|
private static double |
DEFACCELERATE
The default jd of Jan.
|
static String |
KEY_ACCELERATE
The key mapping to the time acceleration.
|
KEY_DATEFORMAT, KEY_DUSKSTART, KEY_OFFSET, KEY_TIMEZONEDEFNAMEISO, ISOSTANDARD, UTCKEY_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 |
|---|
AcceleratedTime(Map<String,String> prop)
Constructs a new global representing accelerated time.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
getValue()
Returns the time as an Long object.
|
void |
setAcceleration(double acc)
Sets the acceleration factor.
|
advance, afterAll, init, registerParameter, rescanned, set, setDate, setDate, setJdgetAscendTime, getTime, isCompletedgetFormatted, setValuegetcreateParameter, delivers, exit, getFormatted, getName, getPreserveFile, getString, getString, 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, waitget, getFormatted, getName, getStringdefaultBoolean, 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, stringPropertiesreloadpublic static final String KEY_ACCELERATE
private static final double DEFACCELERATE
public static final String ACCELSYSPROP
private final long accel
public Number getValue()
getValue in interface ValuegetValue in class SettableTimepublic void setAcceleration(double acc)