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.InvalidPVProvideras 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.BuilderaddPVProviderAfter(AbsoluteDate date, PVCoordinatesProvider pvProv, boolean erasesLater)Add aPVCoordinatesProviderto the collection.AggregatedPVCoordinatesProvider.BuilderaddPVProviderBefore(AbsoluteDate date, PVCoordinatesProvider pvProv, boolean erasesEarlier)Add aPVCoordinatesProviderto the collection.AggregatedPVCoordinatesProviderbuild()Build the aggregated PVCoordinatesProvider.AggregatedPVCoordinatesProvider.BuilderinvalidAfter(AbsoluteDate lastValidDate)Indicate the date after which the resulting PVCoordinatesProvider is invalid.AggregatedPVCoordinatesProvider.BuilderinvalidBefore(AbsoluteDate firstValidDate)Indicate the date before which the resulting PVCoordinatesProvider is invalid.
-
-
-
Constructor Detail
-
Builder
public Builder()
Create a builder using theAggregatedPVCoordinatesProvider.InvalidPVProvideras 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 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:
TimeSpanMap.addValidAfter(Object, AbsoluteDate, boolean)
-
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:
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.
-
-