protected override void InitializeCells() { Parallel.For(0, hyperParams.spaceSize, (int i) => { cellSpace[i] = new BooleanCell(i).SetFirstState(0) as BooleanCell; }); }
protected override void InitialConditionSetup() { int mid = hyperParams.spaceSize / 2; for (int i = 0; i < hyperParams.spaceSize; i++) { if (i == mid) { cellSpace[i] = new BooleanCell(1); } else { cellSpace[i] = new BooleanCell(0); } } }
/** * Constructor used when copying a workbook * * @param nc the number to copy */ protected BooleanRecord(BooleanCell nc) : base(Type.BOOLERR, nc) { value = nc.getValue(); }
/** * Constructor used internally by the application when making a writable * copy of a spreadsheet that has been read in * * @param nc the cell to copy */ public Boolean(BooleanCell nc) : base(nc) { }