Package org.orekit.utils
Class FieldTimeSpanMap.Span<S,F extends CalculusFieldElement<F>>
- java.lang.Object
-
- org.orekit.utils.FieldTimeSpanMap.Span<S,F>
-
- Type Parameters:
S
- Type of the data.F
- Type of the field elements
- Enclosing class:
- FieldTimeSpanMap<T,F extends CalculusFieldElement<F>>
public static class FieldTimeSpanMap.Span<S,F extends CalculusFieldElement<F>> extends Object
Holder for one time span.This data type is dual to
FieldTimeSpanMap.Transition
, it is focused on one valid data, and gives access to surrounding transition dates whereasFieldTimeSpanMap.Transition
is focused on one transition date, and gives access to surrounding valid data.- Since:
- 13.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S
getData()
Get the data valid during this time span.FieldAbsoluteDate<F>
getEnd()
Get the end of this time span.FieldTimeSpanMap.Transition<S,F>
getEndTransition()
Get the transition at the end of this time span.FieldAbsoluteDate<F>
getStart()
Get the start of this time span.FieldTimeSpanMap.Transition<S,F>
getStartTransition()
Get the transition at the start of this time span.FieldTimeSpanMap.Span<S,F>
next()
Get the next time span.FieldTimeSpanMap.Span<S,F>
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 FieldTimeSpanMap.Span<S,F> previous()
Get the previous time span.- Returns:
- previous time span, or null if this time span was the first one
-
next
public FieldTimeSpanMap.Span<S,F> next()
Get the next time span.- Returns:
- next time span, or null if this time span was the last one
-
getStart
public FieldAbsoluteDate<F> getStart()
Get the start of this time span.- Returns:
- start of this time span (will be
FieldAbsoluteDate.getPastInfinity(Field)
ifgetStartTransition()
returns null) - See Also:
getStartTransition()
-
getStartTransition
public FieldTimeSpanMap.Transition<S,F> getStartTransition()
Get the transition at the start of this time span.- Returns:
- transition at the start of this time span (null if span extends to past infinity)
- See Also:
getStart()
-
getEnd
public FieldAbsoluteDate<F> getEnd()
Get the end of this time span.- Returns:
- end of this time span (will be
FieldAbsoluteDate.getFutureInfinity(Field)
ifgetEndTransition()
returns null) - See Also:
getEndTransition()
-
getEndTransition
public FieldTimeSpanMap.Transition<S,F> getEndTransition()
Get the transition at the end of this time span.- Returns:
- transition at the end of this time span (null if span extends to future infinity)
- See Also:
getEnd()
-
-