public void Set(string nameCellStructure, int numStates, string nameNeighborhoodFunc) { _settings.NumStates = numStates; _settings.CellStructure = CellStructure.Get(nameCellStructure); _settings.NeighborhoodFunction = NeighborhoodFunction.Get(nameNeighborhoodFunc); UpdateUi(); }
public CellularAutomataSettings(int states) { _numStates = states; _cellStructure = new HexSixCell(); _funcMapNeighbors = new AliveCellCount(); }
public Cells(CellStructure cellStruct, DiscreteProbabilityDistribution<int> stateDistribution) { _cellStruct = cellStruct; _ary = Util.GetRandomInt2dArray(cellStruct.Columns, cellStruct.Rows, stateDistribution); }
public Cells(CellStructure cellStruct) { _cellStruct = cellStruct; _ary = new int[cellStruct.Columns, cellStruct.Rows]; }
public Cells(CellStructure cellStruct, DiscreteProbabilityDistribution <int> stateDistribution) { _cellStruct = cellStruct; _ary = Util.GetRandomInt2dArray(cellStruct.Columns, cellStruct.Rows, stateDistribution); }
private void comboCellStructure_SelectedIndexChanged(object sender, EventArgs e) { _settings.CellStructure = CellStructure.Get(comboCellStructure.SelectedIndex); OnChanged(); }