How to initialise structures in this code



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
Pls I request you to give me the source code for this.Its urgent. Pls..


Post in the job section and offer money. This aint no homework site.
Topic archived. No new replies allowed.