Package org.orekit.utils
Class AggregatedPVCoordinatesProvider.Builder
- java.lang.Object
-
- org.orekit.utils.AggregatedPVCoordinatesProvider.Builder
-
- Enclosing class:
- AggregatedPVCoordinatesProvider
public static class AggregatedPVCoordinatesProvider.Builder extends Object
Builder class forAggregatedPVCoordinatesProvider
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Create a builder using theAggregatedPVCoordinatesProvider.InvalidPVProvider
as the initial provider.Builder(PVCoordinatesProvider initialProvider)
Create a builder using the provided initial provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregatedPVCoordinatesProvider.Builder
addPVProviderAfter(AbsoluteDate date, PVCoordinatesProvider pvProv, boolean erasesLater)
Add aPVCoordinatesProvider
to the collection.AggregatedPVCoordinatesProvider.Builder
addPVProviderBefore(AbsoluteDate date, PVCoordinatesProvider pvProv, boolean erasesEarlier)
Add aPVCoordinatesProvider
to the collection.AggregatedPVCoordinatesProvider
build()
Build the aggregated PVCoordinatesProvider.AggregatedPVCoordinatesProvider.Builder
invalidAfter(AbsoluteDate lastValidDate)
Indicate the date after which the resulting PVCoordinatesProvider is invalid.AggregatedPVCoordinatesProvider.Builder
invalidBefore(AbsoluteDate firstValidDate)
Indicate the date before which the resulting PVCoordinatesProvider is invalid.
-
-
-
Constructor Detail
-
Builder
public Builder()
Create a builder using theAggregatedPVCoordinatesProvider.InvalidPVProvider
as the initial provider.
-
Builder
public Builder(PVCoordinatesProvider initialProvider)
Create a builder using the provided initial provider.- Parameters:
initialProvider
- the inital provider
-
-
Method Detail
-
addPVProviderAfter
public AggregatedPVCoordinatesProvider.Builder addPVProviderAfter(AbsoluteDate date, PVCoordinatesProvider pvProv, boolean erasesLater)
Add aPVCoordinatesProvider
to the collection. The provided date is the transition time, at which this provider will be used.- Parameters:
date
- the transition datepvProv
- the providererasesLater
- if true, the entry erases all existing transitions that are later thandate
- Returns:
- this builder instance
- See Also:
TimeSpanMap.addValidAfter(Object, AbsoluteDate, boolean)
-
addPVProviderBefore
public AggregatedPVCoordinatesProvider.Builder addPVProviderBefore(AbsoluteDate date, PVCoordinatesProvider pvProv, boolean erasesEarlier)
Add aPVCoordinatesProvider
to the collection. The provided date is the final transition time, before which this provider will be used.- Parameters:
date
- the transition datepvProv
- the providererasesEarlier
- if true, the entry erases all existing transitions that are earlier thandate
- Returns:
- this builder instance
- See Also:
TimeSpanMap.addValidBefore(Object, AbsoluteDate, boolean)
-
invalidBefore
public AggregatedPVCoordinatesProvider.Builder invalidBefore(AbsoluteDate firstValidDate)
Indicate the date before which the resulting PVCoordinatesProvider is invalid.- Parameters:
firstValidDate
- first date at which the resuling provider should be valid- Returns:
- this instance
-
invalidAfter
public AggregatedPVCoordinatesProvider.Builder invalidAfter(AbsoluteDate lastValidDate)
Indicate the date after which the resulting PVCoordinatesProvider is invalid.- Parameters:
lastValidDate
- last date at which the resuling provider should be valid- Returns:
- this instance
-
build
public AggregatedPVCoordinatesProvider build()
Build the aggregated PVCoordinatesProvider.- Returns:
- the new provider instance.
-
-