From 16714b48b5a759ba44c14a2522270327624e0fbe Mon Sep 17 00:00:00 2001 From: AlessandroBregoli Date: Tue, 29 Mar 2022 15:56:34 +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 5c4347e..019e281 100644 --- a/src/params.rs +++ b/src/params.rs @@ -90,7 +90,7 @@ impl DiscreteStatesContinousTimeParams { &self.cim } - ///Setter function for 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 @@ -105,20 +105,25 @@ impl DiscreteStatesContinousTimeParams { } } + + ///Getter function for transitions pub fn get_transitions(&self) -> &Option> { &self.transitions } + ///Setter function for transitions pub fn set_transitions(&mut self, transitions: Array3) { self.transitions = Some(transitions); } + ///Getter function for residence_time pub fn get_residence_time(&self) -> &Option> { &self.residence_time } + ///Setter function for residence_time pub fn set_residence_time(&mut self, residence_time: Array2) { self.residence_time = Some(residence_time); }