Click or drag to resize

DoNothingStateElementAdapterGetAdapter Method

Creates the adapter defined by this instance. Since adapters are meant to transition from one context to another, the previous adapter is passed in to finish the configuration. If it is not needed for your particular adapter it can be ignored.

Namespace:  AGI.Foundation.Coordinates
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public override StateElementAdapter GetAdapter(
	StateElementAdapterDefinition previousAdapter,
	EvaluatorGroup group
)

Parameters

previousAdapter
Type: AGI.Foundation.CoordinatesStateElementAdapterDefinition
The properly configured previous adapter. Implementations of this method should be able to handle cases where the previousAdapter is of the same or compatible type. For example, a ReferenceFrameAdapter must be able to handle when another ReferenceFrameAdapter is passed in as the previousAdapter. If the types are incompatible, then this method should throw an exception as it is a sign that something is incorrectly configured. When possible, design your adapters to work properly even if this parameter is . Consider adding extra properties to the derived type, or have a well defined default behavior if the previousAdapter is null.
group
Type: AGI.FoundationEvaluatorGroup
The EvaluatorGroup to use when constructing any needed evaluators.

Return Value

Type: StateElementAdapter
The configured StateElementAdapter.
See Also