Click or drag to resize

StateElementAdapterHelpersCreateAdapterBetweenSegments 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: SystemString
The string identification of the element being adapted.
from
Type: AGI.Foundation.SegmentPropagationSegmentDefinition
The segment to adapt the element from.
to
Type: AGI.Foundation.SegmentPropagationSegmentDefinition
The segment to adapt the element to.
group
Type: AGI.FoundationEvaluatorGroup
The EvaluatorGroup to use to create the adapter.

Return Value

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