Click or drag to resize

StateElementAdapterHelpersAdaptState Method

A helper method to perform the default state adaptation. Note that initialState and finalState can be the same instance.

Namespace:  AGI.Foundation.SegmentPropagation
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static void AdaptState(
	ITimeBasedState initialState,
	ITimeBasedState finalState,
	IList<StateElementAdapter> adapters
)

Parameters

initialState
Type: AGI.Foundation.CoordinatesITimeBasedState
The old state whose adapted data will be put into finalState.
finalState
Type: AGI.Foundation.CoordinatesITimeBasedState
The state to edit with the adapted data from initialState.
adapters
Type: System.Collections.GenericIListStateElementAdapter
The StateElementAdapters to use to adapt the data in the states.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when initialState or finalState is .
See Also