Click or drag to resize

SegmentDefinitionGetElementAdapter Method

Returns the adapter for the given state element. The StateElementAdapters handle the various transformations of the propagated elements between segments (for example, if the integration frame of a point being propagated changes from one segment to another, the adapter is what handles that transformation between segment). All elements propagated by this segment must have an adapter returned by this method (even if that adapter simply returns the original state). If multiple segments are being propagated by this segment (as a SegmentList would), this must return the adapter of the StateElementAdapter of the element for the final known segment getting propagated.

Namespace:  AGI.Foundation.SegmentPropagation
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public virtual StateElementAdapterDefinition GetElementAdapter(
	string element
)

Parameters

element
Type: SystemString
The element whose StateElementAdapter is needed.

Return Value

Type: StateElementAdapterDefinition
The adapter with the element defined-in set, or if there is no such factory.
Remarks

In general, the concrete SegmentDefinition should have a list of the adapter factory instances that are valid for this segment, and then this method would get the element definition object from this segments configuration.

See Also