From 490fe4e010ea6d1cc7841778bc30a65cbd00ac4b Mon Sep 17 00:00:00 2001 From: AlessandroBregoli Date: Tue, 29 Mar 2022 15:53:50 +0200 Subject: [PATCH] Comments --- src/params.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/params.rs b/src/params.rs index 154fd12..5c4347e 100644 --- a/src/params.rs +++ b/src/params.rs @@ -84,11 +84,16 @@ impl DiscreteStatesContinousTimeParams { residence_time: Option::None, } } - + + ///Getter function for CIM pub fn get_cim(&self) -> &Option> { &self.cim } + ///Setter function for CIM + ///This function check if the cim is valid using the validate_params method. + ///- **Valid cim inserted**: it substitute the CIM in self.cim and return Ok(()) + ///- **Invalid cim inserted**: it replace the self.cim value with None and it retu ParamsError pub fn set_cim(&mut self, cim: Array3) -> Result<(), ParamsError>{ self.cim = Some(cim); match self.validate_params() {