Click or drag to resize

DynamicMatrixPropagationParameterConfigureIndicesOnEvaluator Method

This is called by PropagationStateElement instances using DynamicMatrixPropagationParameter so that the element can update the indices used to identify the individual values corresponding to this scalar in the state during evaluation. In general, this should only be called from within the GetConverter(EvaluatorGroup, MotionInt32) method when configuring the indices provided by the NumericalPropagatorDefinition.

The EvaluatorGroup will create an evaluator based on the StateParameter and cache it for future calls. This method updates the instance variables for the indices so that it will reflect the scalar's elements within the state during evaluation. In general, this breaks the "Evaluator Pattern" by altering data on an evaluator after construction. However, so long as it is done once and only once prior to any evaluation this is deemed as following the "Evaluator Pattern" which stipulates that an evaluator should always return the same value for a given time.

Namespace:  AGI.Foundation.Geometry
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static void ConfigureIndicesOnEvaluator(
	EvaluatorGroup group,
	DynamicMatrixPropagationParameter matrix,
	Motion<int[]> stateInputIndices
)

Parameters

group
Type: AGI.FoundationEvaluatorGroup
The evaluator group in which to create the DynamicMatrixEvaluator corresponding to this scalar.
matrix
Type: AGI.Foundation.GeometryDynamicMatrixPropagationParameter
The instance of the DynamicMatrixPropagationParameter whose evaluator will be configured.
stateInputIndices
Type: AGI.FoundationMotionInt32
The indices representing the locations of the coordinates of this scalar in the state during propagation.
See Also