Commit d4076dbc authored by Vladimír Ulman's avatar Vladimír Ulman
Browse files

COS: CellCycle::triggerCycleMethods() has more useful "not-initialized" message,

     "length" -> "duration" in the docs
parent 7adf7c6c
...@@ -62,11 +62,11 @@ public: ...@@ -62,11 +62,11 @@ public:
// hence, this call is postponed into startCycling(), and this method // hence, this call is postponed into startCycling(), and this method
// was made unavoidable as it is the only that provides the global time // was made unavoidable as it is the only that provides the global time
/** the (informative) cell cycle length [min] */ /** the (informative) cell cycle duration [min] */
const float fullCycleDuration; const float fullCycleDuration;
protected: protected:
/** the length of individual cell cycle phases [min] */ /** the durations of individual cell cycle phases [min] */
float phaseDurations[8] = {0,0,0,0,0,0,0,0}; float phaseDurations[8] = {0,0,0,0,0,0,0,0};
/** override-able pie-slicing of the fullCycleDuration, this /** override-able pie-slicing of the fullCycleDuration, this
...@@ -83,7 +83,7 @@ protected: ...@@ -83,7 +83,7 @@ protected:
} }
public: public:
/** read-only accessor to the lengths of the individual phases */ /** read-only accessor to the durations of the individual phases */
float getPhaseDuration(const ListOfPhases phase) const float getPhaseDuration(const ListOfPhases phase) const
{ {
return phaseDurations[phase]; return phaseDurations[phase];
...@@ -173,7 +173,7 @@ public: ...@@ -173,7 +173,7 @@ public:
void triggerCycleMethods(const float currentGlobalTime) void triggerCycleMethods(const float currentGlobalTime)
{ {
if (curPhase == newBorn) if (curPhase == newBorn)
throw ERROR_REPORT("Not yet fully initialized cell cycle"); throw ERROR_REPORT("Not yet fully initialized cell cycle; did you call startCycling()?");
//beyond the cell cycle, do nothing //beyond the cell cycle, do nothing
if (curPhase == RestInPeace) return; if (curPhase == RestInPeace) return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment