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§
Sourcefn is_active(
&self,
params: Option<&UncertainParameter>,
) -> Result<bool, CausalityError>
fn is_active( &self, params: Option<&UncertainParameter>, ) -> Result<bool, CausalityError>
Determines if the state is active based on the value and optional parameters.
Sourcefn to_action_param(&self) -> ActionParameterValue
fn to_action_param(&self) -> ActionParameterValue
Converts the value to an ActionParameterValue for use in actions.