示例#1
0
        // Metóda, ktorá nastaví zobrazované hodnoty v paneli nastavení na základe aktuálnych nastavení simulácie.
        public void InitilaizeOptionsValues(Model.SimulationSettings settings)
        {
            var data = new OptionsInput
            {
                xSize  = settings.XSize.ToString(),
                ySize  = settings.YSize.ToString(),
                xStart = settings.XStart.ToString(),
                yStart = settings.YStart.ToString(),
                numberOfReplications = settings.NumberOfReplications.ToString(),
                tresHold             = settings.TresHold.ToString(),
                preheating           = settings.Preheating.ToString(),
                recordInterval       = settings.RecordInterval.ToString(),
                errorOccured         = false
            };

            SimOptionsView.SetOptionsInputText(data);
            SimOptionsView.SetOptionsLablesText(data);
        }
 public MonteCarloSimulation(Controller.Controller controller, SimulationSettings defaultSettings)
 {
     this.Controller = controller;
     this.ApplySettings(defaultSettings);
     this.ReplicationsResult = new List <ReplicationResult>(20000001);
 }
示例#3
0
 // Metóda, v rámci ktorej sa aplikujú nastavenia vložené ako parametre metódy.
 public abstract void ApplySettings(SimulationSettings settings);