stella.parameter
Interface Decreasing<T>

All Known Subinterfaces:
TargetDependDecreasing<T>
All Known Implementing Classes:
AirmassTarget, AltTarget, MoonDec, MoonHeight, SolDec, SolHeight, Twilight

public interface Decreasing<T>

An interface denoting that this Value implementation has a value that decreases with time. More importantly, this value knows how to calculate the remaining time it will take until a certain value is reached. This time can be queried and used for e.g. scheduling purposes.


Method Summary
 Double getDescendTime(T until)
          Calculates the remaining time in ms till this parameter reaches the argument value (decresing from higher values).
 

Method Detail

getDescendTime

Double getDescendTime(T until)
Calculates the remaining time in ms till this parameter reaches the argument value (decresing from higher values).

Parameters:
until - The value in the future.
Returns:
A double carrying the remaining time or null if the time cannot be calculated.