Package gaiasky.util.gaia.time
Class ConcreteDuration
java.lang.Object
gaiasky.util.gaia.time.ConcreteDuration
- All Implemented Interfaces:
Duration
,Serializable
A
ConcreteDuration
is a duration that is linked to a time scale- See Also:
-
Field Summary
Fields inherited from interface gaiasky.util.gaia.time.Duration
DAYS_PER_JULIAN_YEAR, HOURS_PER_DAY, HOURS_PER_JULIAN_YEAR, HOURS_PER_REV, MINS_PER_DAY, MINS_PER_HOUR, MINS_PER_JULIAN_YEAR, MINS_PER_REV, NS_PER_DAY, NS_PER_DAY_L, NS_PER_HOUR, NS_PER_HOUR_L, NS_PER_JULIAN_YEAR, NS_PER_JULIAN_YEAR_L, NS_PER_MIN, NS_PER_MIN_L, NS_PER_REV, NS_PER_REV_L, NS_PER_SEC, REVS_PER_DAY, REVS_PER_JULIAN_YEAR, SECS_PER_DAY, SECS_PER_HOUR, SECS_PER_JULIAN_YEAR, SECS_PER_MIN, SECS_PER_REV
-
Constructor Summary
-
Method Summary
-
Field Details
-
value
protected double value
-
-
Constructor Details
-
ConcreteDuration
public ConcreteDuration()
-
-
Method Details
-
getScale
-
setScale
Description copied from interface:Duration
Set the time scale for this duration -
negate
-
mult
Description copied from interface:Duration
Multiply this duration by a given factor -
isLongerThan
Description copied from interface:Duration
Check that this duration is longer than a given one- Specified by:
isLongerThan
in interfaceDuration
- Parameters:
d
- duration to compare to- Returns:
true
if this duration is longer thand
- See Also:
-