Click or drag to resize

StateElementAdapterHelpers.CreateAdapterBetweenSegments Method

A helper method to create a StateElementAdapter from one segment to another.

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 StateElementAdapter CreateAdapterBetweenSegments(
	string element,
	SegmentDefinition from,
	SegmentDefinition to,
	EvaluatorGroup group
)

Parameters

element
Type: System.String
The string identification of the element being adapted.
from
Type: AGI.Foundation.SegmentPropagation.SegmentDefinition
The segment to adapt the element from.
to
Type: AGI.Foundation.SegmentPropagation.SegmentDefinition
The segment to adapt the element to.
group
Type: AGI.Foundation.EvaluatorGroup
The EvaluatorGroup to use to create the adapter.

Return Value

Type: StateElementAdapter
The StateElementAdapter going between the two segments, or null if one or both of the segments does not contain that element.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when from, to, or group is null.
See Also