EvaluatorGroupCreateEvaluatorTEvaluator, TParameter1, TParameter2, TParameter3, TParameter4, TParameter5 Method (EvaluatorGroupCallback5TEvaluator, TParameter1, TParameter2, TParameter3, TParameter4, TParameter5, TParameter1, TParameter2, TParameter3, TParameter4, TParameter5) |
Creates an evaluator in the context of this evaluator group by invoking a callback, if the
evaluator does not already exist in the group.
Namespace:
AGI.Foundation
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public TEvaluator CreateEvaluator<TEvaluator, TParameter1, TParameter2, TParameter3, TParameter4, TParameter5>(
EvaluatorGroupCallback5<TEvaluator, TParameter1, TParameter2, TParameter3, TParameter4, TParameter5> callback,
TParameter1 parameter1,
TParameter2 parameter2,
TParameter3 parameter3,
TParameter4 parameter4,
TParameter5 parameter5
)
where TEvaluator : IEvaluator
Public Function CreateEvaluator(Of TEvaluator As IEvaluator, TParameter1, TParameter2, TParameter3, TParameter4, TParameter5) (
callback As EvaluatorGroupCallback5(Of TEvaluator, TParameter1, TParameter2, TParameter3, TParameter4, TParameter5),
parameter1 As TParameter1,
parameter2 As TParameter2,
parameter3 As TParameter3,
parameter4 As TParameter4,
parameter5 As TParameter5
) As TEvaluator
public:
generic<typename TEvaluator, typename TParameter1, typename TParameter2, typename TParameter3, typename TParameter4, typename TParameter5>
where TEvaluator : IEvaluator
TEvaluator CreateEvaluator(
EvaluatorGroupCallback5<TEvaluator, TParameter1, TParameter2, TParameter3, TParameter4, TParameter5>^ callback,
TParameter1 parameter1,
TParameter2 parameter2,
TParameter3 parameter3,
TParameter4 parameter4,
TParameter5 parameter5
)
member CreateEvaluator :
callback : EvaluatorGroupCallback5<'TEvaluator, 'TParameter1, 'TParameter2, 'TParameter3, 'TParameter4, 'TParameter5> *
parameter1 : 'TParameter1 *
parameter2 : 'TParameter2 *
parameter3 : 'TParameter3 *
parameter4 : 'TParameter4 *
parameter5 : 'TParameter5 -> 'TEvaluator when 'TEvaluator : IEvaluator
Parameters
- callback
- Type: AGI.FoundationEvaluatorGroupCallback5TEvaluator, TParameter1, TParameter2, TParameter3, TParameter4, TParameter5
The callback delegate to use to create the evaluator if the evaluator does not already exist. - parameter1
- Type: TParameter1
The first parameter to pass to the callback delegate. - parameter2
- Type: TParameter2
The second parameter to pass to the callback delegate. - parameter3
- Type: TParameter3
The third parameter to pass to the callback delegate. - parameter4
- Type: TParameter4
The fourth parameter to pass to the callback delegate. - parameter5
- Type: TParameter5
The fifth parameter to pass to the callback delegate.
Type Parameters
- TEvaluator
- The type of evaluator to create.
- TParameter1
- The type of the first parameter to the callback delegate.
- TParameter2
- The type of the second parameter to the callback delegate.
- TParameter3
- The type of the third parameter to the callback delegate.
- TParameter4
- The type of the fourth parameter to the callback delegate.
- TParameter5
- The type of the fifth parameter to the callback delegate.
Return Value
Type:
TEvaluatorThe evaluator.
Exceptions See Also