Package org.orekit.utils
Class FieldTimeSpanMap.Transition<S,F extends CalculusFieldElement<F>>
- java.lang.Object
-
- org.orekit.utils.FieldTimeSpanMap.Transition<S,F>
-
- Type Parameters:
S
- Type of the data.F
- Type of the field elements
- All Implemented Interfaces:
FieldTimeStamped<F>
- Enclosing class:
- FieldTimeSpanMap<T,F extends CalculusFieldElement<F>>
public static class FieldTimeSpanMap.Transition<S,F extends CalculusFieldElement<F>> extends Object implements FieldTimeStamped<F>
Class holding transition times.This data type is dual to
FieldTimeSpanMap.Span
, it is focused on one transition date, and gives access to surrounding valid data whereasFieldTimeSpanMap.Span
is focused on one valid data, and gives access to surrounding transition dates.- Since:
- 13.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S
getAfter()
Get the entry valid after transition.S
getBefore()
Get the entry valid before transition.FieldAbsoluteDate<F>
getDate()
Get the transition date.FieldTimeSpanMap.Span<S,F>
getSpanAfter()
Get theFieldTimeSpanMap.Span
valid after transition.FieldTimeSpanMap.Span<S,F>
getSpanBefore()
Get theFieldTimeSpanMap.Span
valid before transition.FieldTimeSpanMap.Transition<S,F>
next()
Get the next transition.FieldTimeSpanMap.Transition<S,F>
previous()
Get the previous transition.void
resetDate(FieldAbsoluteDate<F> newDate, boolean eraseOverridden)
Move transition.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.time.FieldTimeStamped
durationFrom, durationFrom
-
-
-
-
Method Detail
-
getDate
public FieldAbsoluteDate<F> getDate()
Get the transition date.- Specified by:
getDate
in interfaceFieldTimeStamped<S>
- Returns:
- transition date
-
resetDate
public void resetDate(FieldAbsoluteDate<F> newDate, boolean eraseOverridden)
Move transition.When moving a transition to past or future infinity, it will be disconnected from the time span it initially belonged to as the next or previous time span validity will be extends to infinity.
- Parameters:
newDate
- new transition dateeraseOverridden
- if true, spans that are entirely between current and new transition dates will be silently removed, if false and such spans exist, an exception will be triggered
-
previous
public FieldTimeSpanMap.Transition<S,F> previous()
Get the previous transition.- Returns:
- previous transition, or null if this transition was the first one
-
next
public FieldTimeSpanMap.Transition<S,F> next()
Get the next transition.- Returns:
- next transition, or null if this transition was the last one
-
getBefore
public S getBefore()
Get the entry valid before transition.- Returns:
- entry valid before transition
- See Also:
getSpanBefore()
-
getSpanBefore
public FieldTimeSpanMap.Span<S,F> getSpanBefore()
Get theFieldTimeSpanMap.Span
valid before transition.- Returns:
FieldTimeSpanMap.Span
valid before transition
-
getAfter
public S getAfter()
Get the entry valid after transition.- Returns:
- entry valid after transition
- See Also:
getSpanAfter()
-
getSpanAfter
public FieldTimeSpanMap.Span<S,F> getSpanAfter()
Get theFieldTimeSpanMap.Span
valid after transition.- Returns:
FieldTimeSpanMap.Span
valid after transition
-
-