Package org.orekit.utils
Class AggregatedPVCoordinatesProvider.Builder
java.lang.Object
org.orekit.utils.AggregatedPVCoordinatesProvider.Builder
- Enclosing class:
AggregatedPVCoordinatesProvider
Builder class for
AggregatedPVCoordinatesProvider.-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Create a builder using theAggregatedPVCoordinatesProvider.InvalidPVProvideras the initial provider.Builder(PVCoordinatesProvider initialProvider) Create a builder using the provided initial provider. -
Method Summary
Modifier and TypeMethodDescriptionaddPVProviderAfter(AbsoluteDate date, PVCoordinatesProvider pvProv, boolean erasesLater) Add aPVCoordinatesProviderto the collection.addPVProviderBefore(AbsoluteDate date, PVCoordinatesProvider pvProv, boolean erasesEarlier) Add aPVCoordinatesProviderto the collection.build()Build the aggregated PVCoordinatesProvider.invalidAfter(AbsoluteDate lastValidDate) Indicate the date after which the resulting PVCoordinatesProvider is invalid.invalidBefore(AbsoluteDate firstValidDate) Indicate the date before which the resulting PVCoordinatesProvider is invalid.
-
Constructor Details
-
Builder
public Builder()Create a builder using theAggregatedPVCoordinatesProvider.InvalidPVProvideras the initial provider. -
Builder
Create a builder using the provided initial provider.- Parameters:
initialProvider- the inital provider
-
-
Method Details
-
addPVProviderAfter
public AggregatedPVCoordinatesProvider.Builder addPVProviderAfter(AbsoluteDate date, PVCoordinatesProvider pvProv, boolean erasesLater) Add aPVCoordinatesProviderto 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:
-
addPVProviderBefore
public AggregatedPVCoordinatesProvider.Builder addPVProviderBefore(AbsoluteDate date, PVCoordinatesProvider pvProv, boolean erasesEarlier) Add aPVCoordinatesProviderto 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:
-
invalidBefore
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
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
Build the aggregated PVCoordinatesProvider.- Returns:
- the new provider instance.
-