|
30 | 30 |
|
31 | 31 | namespace bdm {
|
32 | 32 |
|
33 |
| - |
34 |
| -/** |
35 |
| - * @brief Enumeration defining the possible states of a CAR-T cell |
36 |
| - * |
37 |
| - * This enum class represents the different states that a CAR-T cell can be in |
38 |
| - * during its lifecycle in the simulation. |
39 |
| - */ |
| 33 | +/// Enumeration defining the possible states of a CAR-T cell |
| 34 | +/// |
| 35 | +/// This enum class represents the different states that a CAR-T cell can be in |
| 36 | +/// during its lifecycle in the simulation. |
40 | 37 | enum class CartCellState : int {
|
41 |
| - /** @brief Living cell state - the cell is alive and functioning normally */ |
42 |
| - kAlive=0, |
43 |
| - |
44 |
| - /** @brief Apoptotic phase - the cell is undergoing programmed cell death |
45 |
| - * characterized by cell shrinkage and controlled death |
46 |
| - */ |
47 |
| - kApoptotic=1 |
| 38 | + kAlive=0,///< Living cell state - the cell is alive and functioning normally |
| 39 | + kApoptotic=1///< Apoptotic phase - the cell is undergoing programmed cell death characterized by cell shrinkage and controlled death |
48 | 40 | };
|
49 | 41 |
|
50 |
| -/** |
51 |
| - * @brief CAR-T cell class implementation |
52 |
| - * |
53 |
| - * This class represents a CAR-T (Chimeric Antigen Receptor T-cell) in the simulation. |
54 |
| - * It inherits from the base Cell class and includes specific behaviors and properties |
55 |
| - * related to CAR-T cell biology, including states, volume dynamics, and interactions |
56 |
| - * with tumor cells. |
57 |
| - */ |
| 42 | +/// CAR-T cell class implementation |
| 43 | +/// |
| 44 | +/// This class represents a CAR-T (Chimeric Antigen Receptor T-cell) in the simulation. |
| 45 | +/// It inherits from the base Cell class and includes specific behaviors and properties |
| 46 | +/// related to CAR-T cell biology, including states, volume dynamics, and interactions |
| 47 | +/// with tumor cells. |
58 | 48 | class CartCell : public Cell {
|
59 | 49 | BDM_AGENT_HEADER(CartCell, Cell, 1);
|
60 | 50 |
|
@@ -113,137 +103,121 @@ class CartCell : public Cell {
|
113 | 103 | /// Returns the diffusion grid for immunostimulatory factors
|
114 | 104 | DiffusionGrid* GetImmunostimulatoryFactorDiffusionGrid() const { return immunostimulatory_factor_dgrid_; }
|
115 | 105 |
|
116 |
| - /** @brief Change volume using exponential relaxation equation |
117 |
| - * |
118 |
| - * This method explicitly solves the system of exponential relaxation differential |
119 |
| - * equations using a discrete update step. It is used to grow or shrink the volume |
120 |
| - * (and proportions) smoothly toward a desired target volume over time. The relaxation |
121 |
| - * rate controls the speed of convergence and dt=1 (the time_step). |
122 |
| - * |
123 |
| - * @param relaxation_rate_cytoplasm Relaxation rate for cytoplasm volume changes |
124 |
| - * @param relaxation_rate_nucleus Relaxation rate for nucleus volume changes |
125 |
| - * @param relaxation_rate_fluid Relaxation rate for fluid volume changes |
126 |
| - */ |
| 106 | + /// Change volume using exponential relaxation equation |
| 107 | + /// |
| 108 | + /// This method explicitly solves the system of exponential relaxation differential |
| 109 | + /// equations using a discrete update step. It is used to grow or shrink the volume |
| 110 | + /// (and proportions) smoothly toward a desired target volume over time. The relaxation |
| 111 | + /// rate controls the speed of convergence and dt=1 (the time_step). |
| 112 | + /// |
| 113 | + /// @param relaxation_rate_cytoplasm Relaxation rate for cytoplasm volume changes |
| 114 | + /// @param relaxation_rate_nucleus Relaxation rate for nucleus volume changes |
| 115 | + /// @param relaxation_rate_fluid Relaxation rate for fluid volume changes |
127 | 116 | void ChangeVolumeExponentialRelaxationEquation(real_t relaxation_rate_cytoplasm, real_t relaxation_rate_nucleus, real_t relaxation_rate_fluid);
|
128 | 117 |
|
129 |
| - /** @brief Calculate displacement of the cell |
130 |
| - * |
131 |
| - * Computes the displacement of the cell based on interaction forces. |
132 |
| - * |
133 |
| - * @param force Pointer to the interaction force object |
134 |
| - * @param squared_radius The squared radius of the cell |
135 |
| - * @param dt The time step for the simulation |
136 |
| - * @return The calculated displacement vector |
137 |
| - */ |
| 118 | + /// Calculate displacement of the cell |
| 119 | + /// |
| 120 | + /// Computes the displacement of the cell based on interaction forces. |
| 121 | + /// |
| 122 | + /// @param force Pointer to the interaction force object |
| 123 | + /// @param squared_radius The squared radius of the cell |
| 124 | + /// @param dt The time step for the simulation |
| 125 | + /// @return The calculated displacement vector |
138 | 126 | Real3 CalculateDisplacement(const InteractionForce* force,
|
139 | 127 | real_t squared_radius, real_t dt) override;
|
140 | 128 |
|
141 |
| - /** @brief Consume or secrete substances |
142 |
| - * |
143 |
| - * Computes new oxygen or immunostimulatory factor concentration after |
144 |
| - * consumption or secretion by the cell. |
145 |
| - * |
146 |
| - * @param substance_id The ID of the substance (oxygen or immunostimulatory factor) |
147 |
| - * @param old_concentration The previous concentration of the substance |
148 |
| - * @return The new concentration after consumption/secretion |
149 |
| - */ |
| 129 | + /// Consume or secrete substances |
| 130 | + /// |
| 131 | + /// Computes new oxygen or immunostimulatory factor concentration after |
| 132 | + /// consumption or secretion by the cell. |
| 133 | + /// |
| 134 | + /// @param substance_id The ID of the substance (oxygen or immunostimulatory factor) |
| 135 | + /// @param old_concentration The previous concentration of the substance |
| 136 | + /// @return The new concentration after consumption/secretion |
150 | 137 | real_t ConsumeSecreteSubstance(int substance_id, real_t old_concentration);
|
151 | 138 |
|
152 |
| - /** @brief Compute constants for consumption and secretion |
153 |
| - * |
154 |
| - * Updates constants after the cell's change of volume or quantities. |
155 |
| - * These constants are used in the consumption/secretion differential equations. |
156 |
| - */ |
| 139 | + /// Compute constants for consumption and secretion |
| 140 | + /// |
| 141 | + /// Updates constants after the cell's change of volume or quantities. |
| 142 | + /// These constants are used in the consumption/secretion differential equations. |
157 | 143 | void ComputeConstantsConsumptionSecretion();
|
158 | 144 |
|
159 |
| - |
160 |
| - /** @name Private Member Variables |
161 |
| - * @brief Private attributes of the CAR-T cell |
162 |
| - * @{ |
163 |
| - */ |
164 | 145 | private:
|
165 |
| - /** @brief Current state of the CAR-T cell */ |
| 146 | + /// Current state of the CAR-T cell |
166 | 147 | CartCellState state_;
|
167 | 148 |
|
168 |
| - /** @brief Timer to track time in the current state (in minutes) |
169 |
| - * Used for apoptotic state timing |
170 |
| - */ |
| 149 | + /// Timer to track time in the current state (in minutes) |
| 150 | + /// Used for apoptotic state timing |
171 | 151 | int timer_state_;
|
172 | 152 |
|
173 |
| - /** @brief Pointer to the oxygen diffusion grid */ |
| 153 | + /// Pointer to the oxygen diffusion grid |
174 | 154 | DiffusionGrid* oxygen_dgrid_;
|
175 | 155 |
|
176 |
| - /** @brief Pointer to the immunostimulatory factor diffusion grid */ |
| 156 | + /// Pointer to the immunostimulatory factor diffusion grid |
177 | 157 | DiffusionGrid* immunostimulatory_factor_dgrid_;
|
178 | 158 |
|
179 |
| - /** @brief Flag indicating if the cell is attached to a tumor cell */ |
| 159 | + /// Flag indicating if the cell is attached to a tumor cell |
180 | 160 | bool attached_to_tumor_cell_;
|
181 | 161 |
|
182 |
| - /** @brief Current time until apoptosis */ |
| 162 | + /// Current time until apoptosis |
183 | 163 | real_t current_live_time_;
|
184 | 164 |
|
185 |
| - /** @brief Fluid fraction of the cell volume */ |
| 165 | + /// Fluid fraction of the cell volume |
186 | 166 | real_t fluid_fraction_;
|
187 | 167 |
|
188 |
| - /** @brief Volume of the nucleus */ |
| 168 | + /// Volume of the nucleus |
189 | 169 | real_t nuclear_volume_;
|
190 | 170 |
|
191 |
| - /** @brief Target cytoplasm solid volume for exponential relaxation |
192 |
| - * Used during volume changes following exponential relaxation equation |
193 |
| - */ |
| 171 | + /// Target cytoplasm solid volume for exponential relaxation |
| 172 | + /// Used during volume changes following exponential relaxation equation |
194 | 173 | real_t target_cytoplasm_solid_;
|
195 | 174 |
|
196 |
| - /** @brief Target nucleus solid volume for exponential relaxation */ |
| 175 | + /// Target nucleus solid volume for exponential relaxation |
197 | 176 | real_t target_nucleus_solid_;
|
198 | 177 |
|
199 |
| - /** @brief Target fluid fraction for exponential relaxation */ |
| 178 | + /// Target fluid fraction for exponential relaxation |
200 | 179 | real_t target_fraction_fluid_;
|
201 | 180 |
|
202 |
| - /** @brief Target relation between cytoplasm and nucleus volumes */ |
| 181 | + /// Target relation between cytoplasm and nucleus volumes |
203 | 182 | real_t target_relation_cytoplasm_nucleus_;
|
204 | 183 |
|
205 |
| - /** @brief Velocity of the cell in the previous time step */ |
| 184 | + /// Velocity of the cell in the previous time step |
206 | 185 | Real3 older_velocity_;
|
207 | 186 |
|
208 |
| - /** @brief Rate of oxygen consumption by the cell */ |
| 187 | + /// Rate of oxygen consumption by the cell |
209 | 188 | real_t oxygen_consumption_rate_;
|
210 | 189 |
|
211 |
| - /** @brief Rate of immunostimulatory factor secretion by the cell */ |
| 190 | + /// Rate of immunostimulatory factor secretion by the cell |
212 | 191 | real_t immunostimulatory_factor_secretion_rate_;
|
213 | 192 |
|
214 |
| - /** @brief Constant 1 for oxygen consumption/secretion differential equation solution */ |
| 193 | + /// Constant 1 for oxygen consumption/secretion differential equation solution |
215 | 194 | real_t constant1_oxygen_;
|
216 | 195 |
|
217 |
| - /** @brief Constant 2 for oxygen consumption/secretion differential equation solution */ |
| 196 | + /// Constant 2 for oxygen consumption/secretion differential equation solution |
218 | 197 | real_t constant2_oxygen_;
|
219 | 198 |
|
220 |
| - /** @brief Pointer to the attached tumor cell */ |
| 199 | + /// Pointer to the attached tumor cell |
221 | 200 | TumorCell* attached_cell_;
|
222 | 201 |
|
223 |
| - /** @} */ // end of Private Member Variables group |
224 | 202 | };
|
225 | 203 |
|
226 |
| -/** |
227 |
| - * @brief Behavior class for controlling CAR-T cell state transitions |
228 |
| - * |
229 |
| - * This behavior handles the state control logic for CAR-T cells, managing |
230 |
| - * transitions between different cell states such as alive and apoptotic phases. |
231 |
| - * It inherits from the base Behavior class and implements the Run method to |
232 |
| - * execute the state control logic during simulation steps. |
233 |
| - */ |
| 204 | +/// Behavior class for controlling CAR-T cell state transitions |
| 205 | +/// |
| 206 | +/// This behavior handles the state control logic for CAR-T cells, managing |
| 207 | +/// transitions between different cell states such as alive and apoptotic phases. |
| 208 | +/// It inherits from the base Behavior class and implements the Run method to |
| 209 | +/// execute the state control logic during simulation steps. |
234 | 210 | struct StateControlCart : public Behavior {
|
235 | 211 | BDM_BEHAVIOR_HEADER(StateControlCart, Behavior, 1);
|
236 | 212 |
|
237 | 213 | StateControlCart() { AlwaysCopyToNew(); }
|
238 | 214 |
|
239 | 215 | virtual ~StateControlCart() {}
|
240 | 216 |
|
241 |
| - /** @brief Execute the state control behavior |
242 |
| - * @param agent Pointer to the agent (cell) on which to apply the behavior |
243 |
| - */ |
| 217 | + /// Execute the state control behavior |
244 | 218 | void Run(Agent* agent) override;
|
245 | 219 | };
|
246 | 220 |
|
247 | 221 | } // namespace bdm
|
248 | 222 |
|
249 |
| -#endif // CART_CELL_H_ |
| 223 | +#endif |
0 commit comments