public AllowedOscillationFaultModel(ExecutionEnvironment executionEngine, FaultModelConfiguration configuration, string scriptsPath)
 {
     setupDone = false;
     this.scriptsPath = scriptsPath;
     this.ExecutionEngine = executionEngine;
     this.FaultModelConfiguration = (AllowedOscillationFaultModelConfiguration)configuration;
     this.SearchSpaceExplorationWorker = new SearchSpaceExplorationWorker();
     this.TestRunWorker = new TestRunWorker();
 }
 public StepFaultModel(ExecutionEnvironment executionEngine, FaultModelConfiguration configuration, string scriptsPath)
 {
     setupDone = false;
     this.scriptsPath = scriptsPath;
     this.ExecutionEngine = executionEngine;
     this.FaultModelConfiguration = (StepFaultModelConfiguration)configuration;
     this.RandomExplorationWorker = new RandomExplorationWorker();
     this.WorstCaseWorker = new WorstCaseScenarioWorker();
     this.TestRunWorker = new TestRunWorker();
 }
 public ConfigurationControl(FaultModelConfiguration configuration, SimulationSettings simulationSettings)
 {
     InitializeComponent();
     LoadConfiguration(configuration);
     this.simulationSettings = simulationSettings;
 }
        private void LoadConfiguration(FaultModelConfiguration configuration)
        {
            this.configuration = (SineFaultModelConfiguration)configuration;

            this.ExplorationAlgorithmComboBox.Items.Add("AdaptiveRandomSearch");
            this.ExplorationAlgorithmComboBox.Items.Add("RandomSearch");

            this.LocalSeachAlgorithmComboBox.Items.Add("AcceleratedSimulatedAnnealing");
            this.LocalSeachAlgorithmComboBox.Items.Add("SimulatedAnnealing");
            this.LocalSeachAlgorithmComboBox.Items.Add("PatternSearch");
            this.LocalSeachAlgorithmComboBox.Items.Add("MultiStart");
            this.LocalSeachAlgorithmComboBox.Items.Add("GlobalSearch");
            this.LocalSeachAlgorithmComboBox.Items.Add("GeneticAlgorithm");

            ReloadConfiguration();
        }
        private void LoadConfiguration(FaultModelConfiguration configuration)
        {
            this.configuration = (DisturbanceFaultModelConfiguration)configuration;

            this.ExplorationAlgorithmComboBox.Items.Add("AdaptiveRandomSearch");
            this.ExplorationAlgorithmComboBox.Items.Add("RandomSearch");

            this.LocalSeachAlgorithmComboBox.Items.Add("AcceleratedSimulatedAnnealing");
            this.LocalSeachAlgorithmComboBox.Items.Add("SimulatedAnnealing");
            this.LocalSeachAlgorithmComboBox.Items.Add("PatternSearch");
            this.LocalSeachAlgorithmComboBox.Items.Add("MultiStart");
            this.LocalSeachAlgorithmComboBox.Items.Add("GlobalSearch");
            this.LocalSeachAlgorithmComboBox.Items.Add("GeneticAlgorithm");

            this.DisturbanceSignalTypeComboBox.Items.Add("Trapezoidal Ramp");
            this.DisturbanceSignalTypeComboBox.Items.Add("Pulse");
            this.DisturbanceSignalTypeComboBox.Items.Add("Step");
            this.DisturbanceSignalTypeComboBox.Items.Add("Sine wave");
            this.DisturbanceSignalTypeComboBox.Items.Add("Constant");

            ReloadConfiguration();
        }
        private void LoadConfiguration(FaultModelConfiguration configuration)
        {
            this.configuration = (AllowedOscillationFaultModelConfiguration)configuration;

            ReloadConfiguration();
        }