public void useGBC(bool cond) { if (cond) { useGBCFeature = true; getSeedStateDelegate = this.getCellStateGBC; } else { getSeedStateDelegate = this.getCellstate; useGBCFeature = false; } }
public SeedGrowth(int N, int M) : base(N, M) { grainMap.Add(Guid.Empty, Color.Black); grainMap.Add(inclusionId, Color.White); this.getSeedStateDelegate = this.getCellstate; seeds = new Seed[N, M]; for (int i = 0; i < N; i++) { for (int j = 0; j < M; j++) { seeds[i, j] = new Seed(i, j, CellState.dead); } } this.OnIterationComplette += SeedGrowth_OnIterationComplette; this.computeNextIterationDelegate = this.computeNextIteration; }
public void useDP(bool cond) { getSeedStateDelegate = this.getCellStateDualPhase; }
public void useSubstructures(bool cond) { getSeedStateDelegate = this.getCellStateSubstructure; }