Click or drag to resize

SetVariableCallbackT Delegate

The setter delegate for the DelegateBasedVariableT. You will want to apply the currentValue to the appropriate element in the configurationToModify.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.SegmentPropagation (in AGI.Foundation.SegmentPropagation.dll) Version: 20.2.404.0 (20.2.404.0)
public delegate void SetVariableCallback<T>(
	double currentValue,
	T configurationToModify
where T : ICloneWithContext


Type: SystemDouble
The value modifying the configurationToModify. It is up to you to apply this value to whatever the initial value is in the configurationToModify. The values in the configurationToModify must be modified such that they reflect this update.
Type: T
The configuration of the segment getting modified.

Type Parameters

The configuration type this delegate will modify. This configuration type should be the type that is specific to the segment being used (for example, use a InitialStateSegmentConfiguration if the associated segment is a NumericalPropagatorSegment.
See Also