Click or drag to resize

ReturnSegmentSetElementAndAdapter Method

Add or sets an element and related settings to this segment.

Note that many types of derived segments will automatically handle their adapters by interrogating properties specific to the derived segment. Also some segments whose PassAllElementsToNextSegment property is do not require adapters or elements to be set.

These adapters have the responsibility of processing the initial state that the propagator will start propagating from. They will modify the initial state passed to this segment so that the state is in a form that the propagator can process.

Namespace:  AGI.Foundation.SegmentPropagation
Assembly:  AGI.Foundation.SegmentPropagation (in AGI.Foundation.SegmentPropagation.dll) Version: 19.1.398.0 (19.1.398.0)
Syntax
public override bool SetElementAndAdapter(
	StateElementAdapterDefinition adapter
)

Parameters

adapter
Type: AGI.Foundation.CoordinatesStateElementAdapterDefinition
An instance of the factory that makes the adapter. This must be configured with the current defined in object (if appropriate) and with the element identification.

Return Value

Type: Boolean
if the element was added or set successfully. if not. A return of does not indicate an error; it means that this segment does not need elements and adapters explicitly set.
See Also