Package org.orekit.utils
Class TimeSpanMap.Span<S>
- java.lang.Object
-
- org.orekit.utils.TimeSpanMap.Span<S>
-
- Type Parameters:
S
- Type of the data.
- Enclosing class:
- TimeSpanMap<T>
public static class TimeSpanMap.Span<S> extends Object
Holder for one time span.This data type is dual to
TimeSpanMap.Transition
, it is focused on one valid data, and gives access to surrounding transition dates whereasTimeSpanMap.Transition
is focused on one transition date, and gives access to surrounding valid data.- Since:
- 9.3
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S
getData()
Get the data valid during this time span.AbsoluteDate
getEnd()
Get the end of this time span.TimeSpanMap.Transition<S>
getEndTransition()
Get the transition at end of this time span.AbsoluteDate
getStart()
Get the start of this time span.TimeSpanMap.Transition<S>
getStartTransition()
Get the transition at start of this time span.TimeSpanMap.Span<S>
next()
Get the next time span.TimeSpanMap.Span<S>
previous()
Get the previous time span.
-
-
-
Method Detail
-
getData
public S getData()
Get the data valid during this time span.- Returns:
- data valid during this time span
-
previous
public TimeSpanMap.Span<S> previous()
Get the previous time span.- Returns:
- previous time span, or null if this time span was the first one
- Since:
- 11.1
-
next
public TimeSpanMap.Span<S> next()
Get the next time span.- Returns:
- next time span, or null if this time span was the last one
- Since:
- 11.1
-
getStart
public AbsoluteDate getStart()
Get the start of this time span.- Returns:
- start of this time span (will be
AbsoluteDate.PAST_INFINITY
ifgetStartTransition()
returns null) - See Also:
getStartTransition()
-
getStartTransition
public TimeSpanMap.Transition<S> getStartTransition()
Get the transition at start of this time span.- Returns:
- transition at start of this time span (null if span extends to past infinity)
- Since:
- 11.1
- See Also:
getStart()
-
getEnd
public AbsoluteDate getEnd()
Get the end of this time span.- Returns:
- end of this time span (will be
AbsoluteDate.FUTURE_INFINITY
ifgetEndTransition()
returns null) - See Also:
getEndTransition()
-
getEndTransition
public TimeSpanMap.Transition<S> getEndTransition()
Get the transition at end of this time span.- Returns:
- transition at end of this time span (null if span extends to future infinity)
- Since:
- 11.1
- See Also:
getEnd()
-
-