public GridController(int gridWidth, int gridHeight) { currentGrid = new Grid(gridWidth, gridHeight); nextStepGrid = new Grid(gridWidth, gridHeight); nucleonsPopulation = 1; CurrentNucleonID = 0; emptyCount = Grid.SizeX * Grid.SizeY; ProbabilityOfChange = 100; mcEngine = new MonteCarloEngine(); rcEngine = new RecrystallizationEngine(); }
public StandardSimulation() { _random = new Random(); _simulationEngine = new SimulationEngine(_random); _bitmapEngine = new BitmapEngine(_simulationEngine); _inclusionsEngine = new InclusionsEngine(_random, _simulationEngine); _CAEngine = new CAEngine(_random, _simulationEngine); _MCEngine = new MCEngine(_random, _simulationEngine); _fileEngine = new FileEngine(_simulationEngine); _recrystallizationEngine = new RecrystallizationEngine(_random, _simulationEngine); }