예제 #1
0
        public Simulation(SimConfigurator configurator)
        {
            if (configurator == null)
                throw new ArgumentNullException("configurator");

            _configurator = configurator;
            _previous_config_string = _configurator.SerializeSimConfigToString();
        }
예제 #2
0
        public bool ScenarioChanged()
        {
            string current_sim_string       = _configurator.SerializeSimConfigToString();
            bool   changed_since_last_check = (current_sim_string != _previous_config_string);

            // Reset for next check
            _previous_config_string = current_sim_string;

            return(changed_since_last_check);
        }
예제 #3
0
        public Simulation(SimConfigurator configurator)
        {
            if (configurator == null)
            {
                throw new ArgumentNullException("configurator");
            }

            _configurator           = configurator;
            _previous_config_string = _configurator.SerializeSimConfigToString();
        }