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>
public static class TimeSpanMap.Transition<S> extends Object implements TimeStamped
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 whereasTimeSpanMap.Span
is focused on one valid data, and gives access to surrounding transition dates.
-
-
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.AbsoluteDate
getDate()
Get the transition date.TimeSpanMap.Span<S>
getSpanAfter()
Get theTimeSpanMap.Span
valid after transition.TimeSpanMap.Span<S>
getSpanBefore()
Get theTimeSpanMap.Span
valid before transition.TimeSpanMap.Transition<S>
next()
Get the next transition.TimeSpanMap.Transition<S>
previous()
Get the previous 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.TimeStamped
durationFrom
-
-
-
-
Method Detail
-
getDate
public AbsoluteDate getDate()
Get the transition date.- Specified by:
getDate
in interfaceTimeStamped
- Returns:
- transition date
-
previous
public TimeSpanMap.Transition<S> previous()
Get the previous transition.- Returns:
- previous transition, or null if this transition was the first one
- Since:
- 11.1
-
next
public TimeSpanMap.Transition<S> next()
Get the next transition.- Returns:
- next transition, or null if this transition was the last one
- Since:
- 11.1
-
getBefore
public S getBefore()
Get the entry valid before transition.- Returns:
- entry valid before transition
- See Also:
getSpanBefore()
-
getSpanBefore
public TimeSpanMap.Span<S> getSpanBefore()
Get theTimeSpanMap.Span
valid before transition.- Returns:
TimeSpanMap.Span
valid before transition- Since:
- 11.1
-
getAfter
public S getAfter()
Get the entry valid after transition.- Returns:
- entry valid after transition
- See Also:
getSpanAfter()
-
getSpanAfter
public TimeSpanMap.Span<S> getSpanAfter()
Get theTimeSpanMap.Span
valid after transition.- Returns:
TimeSpanMap.Span
valid after transition- Since:
- 11.1
-
-