CsmEvaluable

Trait CsmEvaluable 

Source
pub trait CsmEvaluable {
    // Required methods
    fn is_active(
        &self,
        params: Option<&UncertainParameter>,
    ) -> Result<bool, CausalityError>;
    fn to_action_param(&self) -> ActionParameterValue;
}
Expand description

Trait for types that can be evaluated to a boolean decision in a CSM.

Required Methods§

Source

fn is_active( &self, params: Option<&UncertainParameter>, ) -> Result<bool, CausalityError>

Determines if the state is active based on the value and optional parameters.

Source

fn to_action_param(&self) -> ActionParameterValue

Converts the value to an ActionParameterValue for use in actions.

Implementations on Foreign Types§

Source§

impl CsmEvaluable for bool

Source§

impl CsmEvaluable for UncertainBool

Source§

impl CsmEvaluable for UncertainF64

Implementors§