Struct dmntk_model_evaluator::ModelEvaluator
source · pub struct ModelEvaluator { /* private fields */ }
Expand description
Model evaluator.
Implementations§
source§impl ModelEvaluator
impl ModelEvaluator
sourcepub fn new(definitions: &[Definitions]) -> Result<Arc<Self>>
pub fn new(definitions: &[Definitions]) -> Result<Arc<Self>>
Creates an instance of ModelEvaluator from parsed Definitions.
sourcepub fn input_data_evaluator(&self) -> &InputDataEvaluator
pub fn input_data_evaluator(&self) -> &InputDataEvaluator
Returns a reference to input data evaluator.
sourcepub fn item_definition_evaluator(&self) -> &ItemDefinitionEvaluator
pub fn item_definition_evaluator(&self) -> &ItemDefinitionEvaluator
Returns a reference to item definition evaluator.
sourcepub fn business_knowledge_model_evaluator(
&self
) -> &BusinessKnowledgeModelEvaluator
pub fn business_knowledge_model_evaluator( &self ) -> &BusinessKnowledgeModelEvaluator
Returns a reference to business knowledge model evaluator.
sourcepub fn decision_evaluator(&self) -> &DecisionEvaluator
pub fn decision_evaluator(&self) -> &DecisionEvaluator
Returns a reference to decision evaluator.
sourcepub fn decision_service_evaluator(&self) -> &DecisionServiceEvaluator
pub fn decision_service_evaluator(&self) -> &DecisionServiceEvaluator
Returns a reference to decision service evaluator.
sourcepub fn invocables(&self) -> &Invocables
pub fn invocables(&self) -> &Invocables
Returns a reference to invocables in model evaluator.
sourcepub fn evaluate_invocable(
&self,
namespace: &str,
invocable_name: &str,
input_data: &FeelContext
) -> Value
pub fn evaluate_invocable( &self, namespace: &str, invocable_name: &str, input_data: &FeelContext ) -> Value
Evaluates an invocable.
Auto Trait Implementations§
impl !Freeze for ModelEvaluator
impl !RefUnwindSafe for ModelEvaluator
impl Send for ModelEvaluator
impl Sync for ModelEvaluator
impl Unpin for ModelEvaluator
impl !UnwindSafe for ModelEvaluator
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more