Click or drag to resize

StateElementAdapterHelpers.AdaptEphemeris Method

Adapts the ephemeris using the adapters provided. A new list of ITimeBasedStates will be returned. The states will have been cloned using the context and those clones adapted, leaving the original states alone.

Namespace:  AGI.Foundation.SegmentPropagation
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public static List<ITimeBasedState> AdaptEphemeris(
	IList<ITimeBasedState> ephemeris,
	IList<StateElementAdapter> adapters,
	CopyContext context
)

Parameters

ephemeris
Type: System.Collections.Generic.IList<ITimeBasedState>
The ephemeris to be adapted.
adapters
Type: System.Collections.Generic.IList<StateElementAdapter>
The adapters to adapt the ephemeris.
context
Type: AGI.Foundation.Infrastructure.CopyContext
The context to use to clone the states in the ephemeris.

Return Value

Type: List<ITimeBasedState>
A new list of cloned and adapted states.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when ephemeris or context is null.
See Also