Click or drag to resize

SegmentListGetElementAdapter Method

Returns the adapter for the given 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 a adapter returned by this method (even if that adapter simply returns the original state). If multiple segments are getting propagated by this segment (as as 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: 19.1.398.0 (19.1.398.0)
public override StateElementAdapterDefinition GetElementAdapter(
	string element


Type: SystemString
The element whose StateElementAdapter is needed.

Return Value

Type: StateElementAdapterDefinition
The adapter with the element defined-in set.

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