if parentCell.type==CSC:
r = uniform(0,1);
if(r<ALPHA):
childCell.type=CSC
else:
childCell.type=TAC
childCellDict["beta"] = BETA;
if parentCell.type==TAC:
if(parentCellDict["beta"] > 1):
childCell.type=TAC
parentCellDict["beta"] = parentCellDict["beta"] - 1;
childCellDict["beta"] = parentCellDict["beta"] - 1;
else:
parentCell.type=self.TDC
childCell.type=self.TDC
parentCellDict["gamma"] = GAMMA;
childCellDict["gamma"] = GAMMA;
if parentCell.type==TDC:
if(parentCellDict["gamma"] > 1):
parentCellDict["gamma"] = parentCellDict["gamma"] - 1;
else:
parentCell.type=None
Last edited on