public interface Leg extends TimeStamped
It’s also TimeStamped by the beginning date.
Please note a Leg should be immutable, and please see
Leg#copy(AbsoluteDateInterval) method.
TimeStamped,
LegsSequence| Modifier and Type | Field and Description |
|---|---|
static String |
LEG_NATURE
Default nature.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
contains(AbsoluteDate dateIn)
Check whether the given date is contained in the interval of the current leg.
|
Leg |
copy(AbsoluteDateInterval newInterval)
Creates a new leg from this one.
|
default AbsoluteDate |
getDate()
Returns the leg start date.
|
default AbsoluteDate |
getEnd()
Returns the leg end date.
|
default String |
getNature()
Returns the nature of the leg.
|
AbsoluteDateInterval |
getTimeInterval()
Returns the time interval of the leg.
|
default String |
toPrettyString()
Returns a nice
String representation. |
static final String LEG_NATURE
default String getNature()
AbsoluteDateInterval getTimeInterval()
default AbsoluteDate getDate()
getDate in interface TimeStampeddefault AbsoluteDate getEnd()
Leg copy(AbsoluteDateInterval newInterval)
newInterval - The time interval of the leg to createLeg valid on provided intervalIllegalArgumentException - If the given newInterval is problematic (too long, too short, whatever)default String toPrettyString()
String representation.String representation.default boolean contains(AbsoluteDate dateIn)
dateIn - date to checkCopyright © 2024 CNES. All rights reserved.