Exemplo n.º 1
0
 protected override void InitializeCells()
 {
     Parallel.For(0, hyperParams.spaceSize, (int i) =>
     {
         cellSpace[i] = new BooleanCell(i).SetFirstState(0) as BooleanCell;
     });
 }
Exemplo n.º 2
0
        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);
                }
            }
        }
Exemplo n.º 3
0
 /**
  * Constructor used when copying a workbook
  *
  * @param nc the number to copy
  */
 protected BooleanRecord(BooleanCell nc)
     : base(Type.BOOLERR, nc)
 {
     value = nc.getValue();
 }
Exemplo n.º 4
0
 /**
  * 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)
 {
 }
Exemplo n.º 5
0
 /**
  * Constructor used when copying a workbook
  *
  * @param nc the number to copy
  */
 protected BooleanRecord(BooleanCell nc)
     : base(Type.BOOLERR, nc)
 {
     value = nc.getValue();
 }
Exemplo n.º 6
0
 /**
  * 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)
 {
 }