stella.parameter
Class AcceleratedTime
java.lang.Object
util.PropertyContainer
stella.parameter.AbstractParameter
stella.parameter.AbstractValue
stella.parameter.Time
stella.parameter.SettableTime
stella.parameter.AcceleratedTime
- All Implemented Interfaces:
- Cloneable, Parameter, Increasing, Value, WeatherDependingParameter, ExitCleaning, Initializable, PropertyBearing, Reloadable
public class AcceleratedTime
- extends SettableTime
A general variable representing time. Extends the AbstractValue
base class. Does not need any registereed additional
Parameters.
|
Field Summary |
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. |
|
Constructor Summary |
AcceleratedTime(Map prop)
Constructs a new global representing accelerated time. |
| Methods inherited from class stella.parameter.AbstractParameter |
createParameter, delivers, exit, getFormatted, getName, getPreserveFile, getString, getString, init, register, setName, toString |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, clone, createFrom, createFrom, createFrom, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getLocalClassLoader, getLocalized, getLocalized, getLocalizedString, getLocalizedString, getProperties, getPropertiesToKey, getPropertiesToKey, getProperty, getResource, getResourceAsStream, getResourceFromKey, getResources, has, isNew, keyCreate, keyCreate, parseObject, reload, reload, removeProperty, setObject, setProperties, setProperty, stringProperties |
| Methods inherited from interface util.PropertyBearing |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getLocalized, getProperties, getProperty, getResource, getResourceAsStream, getResources, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
KEY_ACCELERATE
public static final String KEY_ACCELERATE
- The key mapping to the time acceleration.
- See Also:
- Constant Field Values
DEFACCELERATE
private static final double DEFACCELERATE
- The default jd of Jan. 1st 1970, 0h00 GMT. (2440587.5)
- See Also:
- Constant Field Values
ACCELSYSPROP
public static final String ACCELSYSPROP
- If acceleration is set, we export to the system properties.
- See Also:
- Constant Field Values
accel
private long accel
- The date when the acceleration starts. Identical to creation time.
AcceleratedTime
public AcceleratedTime(Map prop)
- Constructs a new global representing accelerated time.
getValue
public Number getValue()
- Returns the time as an Long object. Querries the system time and wraps
it into a Long instance.
- Specified by:
getValue in interface Value- Overrides:
getValue in class SettableTime
setAcceleration
public void setAcceleration(double acc)
- Sets the acceleration factor.