Package org.orekit.utils
Class TimeSpanMap.Transition<S>
java.lang.Object
org.orekit.utils.TimeSpanMap.Transition<S>
- Type Parameters:
S- Type of the data.
- All Implemented Interfaces:
TimeStamped
- Enclosing class:
TimeSpanMap<T>
Class holding transition times.
This data type is dual to TimeSpanMap.Span, it is
focused on one transition date, and gives access to
surrounding valid data whereas TimeSpanMap.Span is focused
on one valid data, and gives access to surrounding
transition dates.
-
Method Summary
Modifier and TypeMethodDescriptiongetAfter()Get the entry valid after transition.Get the entry valid before transition.getDate()Get the transition date.Get theTimeSpanMap.Spanvalid after transition.Get theTimeSpanMap.Spanvalid before transition.next()Get the next transition.previous()Get the previous transition.voidresetDate(AbsoluteDate 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.TimeStamped
durationFrom
-
Method Details
-
getDate
Get the transition date.- Specified by:
getDatein interfaceTimeStamped- 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- Since:
- 13.0
-
previous
Get the previous transition.- Returns:
- previous transition, or null if this transition was the first one
- Since:
- 11.1
-
next
Get the next transition.- Returns:
- next transition, or null if this transition was the last one
- Since:
- 11.1
-
getBefore
Get the entry valid before transition.- Returns:
- entry valid before transition
- See Also:
-
getSpanBefore
Get theTimeSpanMap.Spanvalid before transition.- Returns:
TimeSpanMap.Spanvalid before transition- Since:
- 11.1
-
getAfter
Get the entry valid after transition.- Returns:
- entry valid after transition
- See Also:
-
getSpanAfter
Get theTimeSpanMap.Spanvalid after transition.- Returns:
TimeSpanMap.Spanvalid after transition- Since:
- 11.1
-