Skip to content

Commit bcd0b26

Browse files
committed
cart_cell comments fixed
1 parent b7a48e6 commit bcd0b26

File tree

1 file changed

+70
-96
lines changed

1 file changed

+70
-96
lines changed

src/cart_cell.h

Lines changed: 70 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,21 @@
3030

3131
namespace bdm {
3232

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.
4037
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
4840
};
4941

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.
5848
class CartCell : public Cell {
5949
BDM_AGENT_HEADER(CartCell, Cell, 1);
6050

@@ -113,137 +103,121 @@ class CartCell : public Cell {
113103
/// Returns the diffusion grid for immunostimulatory factors
114104
DiffusionGrid* GetImmunostimulatoryFactorDiffusionGrid() const { return immunostimulatory_factor_dgrid_; }
115105

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
127116
void ChangeVolumeExponentialRelaxationEquation(real_t relaxation_rate_cytoplasm, real_t relaxation_rate_nucleus, real_t relaxation_rate_fluid);
128117

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
138126
Real3 CalculateDisplacement(const InteractionForce* force,
139127
real_t squared_radius, real_t dt) override;
140128

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
150137
real_t ConsumeSecreteSubstance(int substance_id, real_t old_concentration);
151138

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.
157143
void ComputeConstantsConsumptionSecretion();
158144

159-
160-
/** @name Private Member Variables
161-
* @brief Private attributes of the CAR-T cell
162-
* @{
163-
*/
164145
private:
165-
/** @brief Current state of the CAR-T cell */
146+
/// Current state of the CAR-T cell
166147
CartCellState state_;
167148

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
171151
int timer_state_;
172152

173-
/** @brief Pointer to the oxygen diffusion grid */
153+
/// Pointer to the oxygen diffusion grid
174154
DiffusionGrid* oxygen_dgrid_;
175155

176-
/** @brief Pointer to the immunostimulatory factor diffusion grid */
156+
/// Pointer to the immunostimulatory factor diffusion grid
177157
DiffusionGrid* immunostimulatory_factor_dgrid_;
178158

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
180160
bool attached_to_tumor_cell_;
181161

182-
/** @brief Current time until apoptosis */
162+
/// Current time until apoptosis
183163
real_t current_live_time_;
184164

185-
/** @brief Fluid fraction of the cell volume */
165+
/// Fluid fraction of the cell volume
186166
real_t fluid_fraction_;
187167

188-
/** @brief Volume of the nucleus */
168+
/// Volume of the nucleus
189169
real_t nuclear_volume_;
190170

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
194173
real_t target_cytoplasm_solid_;
195174

196-
/** @brief Target nucleus solid volume for exponential relaxation */
175+
/// Target nucleus solid volume for exponential relaxation
197176
real_t target_nucleus_solid_;
198177

199-
/** @brief Target fluid fraction for exponential relaxation */
178+
/// Target fluid fraction for exponential relaxation
200179
real_t target_fraction_fluid_;
201180

202-
/** @brief Target relation between cytoplasm and nucleus volumes */
181+
/// Target relation between cytoplasm and nucleus volumes
203182
real_t target_relation_cytoplasm_nucleus_;
204183

205-
/** @brief Velocity of the cell in the previous time step */
184+
/// Velocity of the cell in the previous time step
206185
Real3 older_velocity_;
207186

208-
/** @brief Rate of oxygen consumption by the cell */
187+
/// Rate of oxygen consumption by the cell
209188
real_t oxygen_consumption_rate_;
210189

211-
/** @brief Rate of immunostimulatory factor secretion by the cell */
190+
/// Rate of immunostimulatory factor secretion by the cell
212191
real_t immunostimulatory_factor_secretion_rate_;
213192

214-
/** @brief Constant 1 for oxygen consumption/secretion differential equation solution */
193+
/// Constant 1 for oxygen consumption/secretion differential equation solution
215194
real_t constant1_oxygen_;
216195

217-
/** @brief Constant 2 for oxygen consumption/secretion differential equation solution */
196+
/// Constant 2 for oxygen consumption/secretion differential equation solution
218197
real_t constant2_oxygen_;
219198

220-
/** @brief Pointer to the attached tumor cell */
199+
/// Pointer to the attached tumor cell
221200
TumorCell* attached_cell_;
222201

223-
/** @} */ // end of Private Member Variables group
224202
};
225203

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.
234210
struct StateControlCart : public Behavior {
235211
BDM_BEHAVIOR_HEADER(StateControlCart, Behavior, 1);
236212

237213
StateControlCart() { AlwaysCopyToNew(); }
238214

239215
virtual ~StateControlCart() {}
240216

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
244218
void Run(Agent* agent) override;
245219
};
246220

247221
} // namespace bdm
248222

249-
#endif // CART_CELL_H_
223+
#endif

0 commit comments

Comments
 (0)