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 whereas FieldTimeSpanMap.Span is focused
on one valid data, and gives access to surrounding
transition dates.
- Since:
- 13.1
-
Method Summary
Modifier and TypeMethodDescriptiongetAfter()Get the entry valid after transition.Get the entry valid before transition.getDate()Get the transition date.Get theFieldTimeSpanMap.Spanvalid after transition.Get theFieldTimeSpanMap.Spanvalid before transition.next()Get the next transition.previous()Get the previous transition.voidresetDate(FieldAbsoluteDate<F> newDate, boolean eraseOverridden) Move transition.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.time.FieldTimeStamped
durationFrom, durationFrom
-
Method Details
-
getDate
Get the transition date.- Specified by:
getDatein interfaceFieldTimeStamped<S>- Returns:
- transition date
-
resetDate
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
Get the previous transition.- Returns:
- previous transition, or null if this transition was the first one
-
next
Get the next transition.- Returns:
- next transition, or null if this transition was the last one
-
getBefore
Get the entry valid before transition.- Returns:
- entry valid before transition
- See Also:
-
getSpanBefore
Get theFieldTimeSpanMap.Spanvalid before transition.- Returns:
FieldTimeSpanMap.Spanvalid before transition
-
getAfter
Get the entry valid after transition.- Returns:
- entry valid after transition
- See Also:
-
getSpanAfter
Get theFieldTimeSpanMap.Spanvalid after transition.- Returns:
FieldTimeSpanMap.Spanvalid after transition
-