Skip to main content

OperatorProvider

Trait OperatorProvider 

Source
pub trait OperatorProvider<R>: Send + Sync
where R: Rules,
{ // Required methods fn provide( &self, rules: R, context: Option<&ProviderContext<'_, ActionNodeData, String, MapNodeState>>, ) -> ConfigurableOperator<R>; fn name(&self) -> &str; // Provided method fn reevaluate( &self, _operator: &mut ConfigurableOperator<R>, _context: &ProviderContext<'_, ActionNodeData, String, MapNodeState>, ) { ... } }
Expand description

Operator を提供する trait

状況に応じて最適な Operator を選択・構築する。

Required Methods§

Source

fn provide( &self, rules: R, context: Option<&ProviderContext<'_, ActionNodeData, String, MapNodeState>>, ) -> ConfigurableOperator<R>

Operator を構築

Source

fn name(&self) -> &str

Provider 名

Provided Methods§

Source

fn reevaluate( &self, _operator: &mut ConfigurableOperator<R>, _context: &ProviderContext<'_, ActionNodeData, String, MapNodeState>, )

Selection を再評価して切り替え

Implementors§