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
AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 22.2.414.0 (22.2.414.0)
public abstract StateElementAdapter GetAdapter(
Public MustOverride Function GetAdapter (
previousAdapter As StateElementAdapterDefinition,
group As EvaluatorGroup
) As StateElementAdapter
virtual StateElementAdapter^ GetAdapter(
abstract GetAdapter :
previousAdapter : StateElementAdapterDefinition *
group : EvaluatorGroup -> StateElementAdapter
- 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.
- Type: AGI.FoundationEvaluatorGroup
The EvaluatorGroup to use when constructing any needed evaluators.
The configured StateElementAdapter