stella.parameter
Interface TargetDependIncreasing<T>
- All Superinterfaces:
- Increasing<T>
- All Known Implementing Classes:
- AirmassTarget, AltTarget, AzTarget, TauTarget
public interface TargetDependIncreasing<T>
- extends Increasing<T>
An interface denoting that this Value implementation has a
value that increases 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.
This interface should be implemented by target depending parameters.
getAscendTimeFor
Double getAscendTimeFor(TargetDefinition target,
T until)
- Calculates the remaining time in ms till this parameter reaches the
argument value (increasing from lower values). For a time query this is
simply the difference between the argument value and the current time.
- Parameters:
until - The value in the future.
- Returns:
- A double carrying the remaining time or null if the time
cannot be calculated.