Struct dmntk_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<ModelEvaluator>, DmntkError>
pub fn new(definitions: &Definitions) -> Result<Arc<ModelEvaluator>, DmntkError>
Creates an instance of ModelEvaluator.
sourcepub fn input_data_evaluator(
&self
) -> Result<RwLockReadGuard<'_, InputDataEvaluator>, DmntkError>
pub fn input_data_evaluator(
&self
) -> Result<RwLockReadGuard<'_, InputDataEvaluator>, DmntkError>
sourcepub fn input_data_context_evaluator(
&self
) -> Result<RwLockReadGuard<'_, InputDataContextEvaluator>, DmntkError>
pub fn input_data_context_evaluator(
&self
) -> Result<RwLockReadGuard<'_, InputDataContextEvaluator>, DmntkError>
sourcepub fn item_definition_context_evaluator(
&self
) -> Result<RwLockReadGuard<'_, ItemDefinitionContextEvaluator>, DmntkError>
pub fn item_definition_context_evaluator(
&self
) -> Result<RwLockReadGuard<'_, ItemDefinitionContextEvaluator>, DmntkError>
sourcepub fn item_definition_evaluator(
&self
) -> Result<RwLockReadGuard<'_, ItemDefinitionEvaluator>, DmntkError>
pub fn item_definition_evaluator(
&self
) -> Result<RwLockReadGuard<'_, ItemDefinitionEvaluator>, DmntkError>
sourcepub fn item_definition_type_evaluator(
&self
) -> Result<RwLockReadGuard<'_, ItemDefinitionTypeEvaluator>, DmntkError>
pub fn item_definition_type_evaluator(
&self
) -> Result<RwLockReadGuard<'_, ItemDefinitionTypeEvaluator>, DmntkError>
sourcepub fn business_knowledge_model_evaluator(
&self
) -> Result<RwLockReadGuard<'_, BusinessKnowledgeModelEvaluator>, DmntkError>
pub fn business_knowledge_model_evaluator(
&self
) -> Result<RwLockReadGuard<'_, BusinessKnowledgeModelEvaluator>, DmntkError>
sourcepub fn decision_service_evaluator(
&self
) -> Result<RwLockReadGuard<'_, DecisionServiceEvaluator>, DmntkError>
pub fn decision_service_evaluator(
&self
) -> Result<RwLockReadGuard<'_, DecisionServiceEvaluator>, DmntkError>
sourcepub fn decision_evaluator(
&self
) -> Result<RwLockReadGuard<'_, DecisionEvaluator>, DmntkError>
pub fn decision_evaluator(
&self
) -> Result<RwLockReadGuard<'_, DecisionEvaluator>, DmntkError>
sourcepub fn evaluate_invocable(
&self,
invocable_name: &str,
input_data: &FeelContext
) -> Value
pub fn evaluate_invocable(
&self,
invocable_name: &str,
input_data: &FeelContext
) -> Value
Evaluates an invocable with specified name.
sourcepub fn add_invocable_decision(&self, name: &str, id: &str)
pub fn add_invocable_decision(&self, name: &str, id: &str)
sourcepub fn add_invocable_business_knowledge_model(
&self,
name: &str,
id: &str,
output_variable_name: Name
)
pub fn add_invocable_business_knowledge_model(
&self,
name: &str,
id: &str,
output_variable_name: Name
)
sourcepub fn add_invocable_decision_service(&self, name: &str, id: &str)
pub fn add_invocable_decision_service(&self, name: &str, id: &str)
sourcepub fn evaluate_business_knowledge_model(
&self,
id: &str,
input_data: &FeelContext,
output_variable_name: &Name
) -> Value
pub fn evaluate_business_knowledge_model(
&self,
id: &str,
input_data: &FeelContext,
output_variable_name: &Name
) -> Value
Evaluates a business knowledge model.
sourcepub fn evaluate_decision(&self, id: &str, input_data: &FeelContext) -> Value
pub fn evaluate_decision(&self, id: &str, input_data: &FeelContext) -> Value
Evaluates a decision.
sourcepub fn evaluate_decision_service(
&self,
id: &str,
input_data: &FeelContext
) -> Value
pub fn evaluate_decision_service(
&self,
id: &str,
input_data: &FeelContext
) -> Value
Evaluates a decision service.
Trait Implementations§
source§impl Default for ModelEvaluator
impl Default for ModelEvaluator
source§fn default() -> ModelEvaluator
fn default() -> ModelEvaluator
Returns the “default value” for a type. Read more