Exemple #1
0
        protected override void SuccessfullyFetched(IList <AnalyticRuleSettings> ruleSettings)
        {
            AnalyticModelSettingsElectricSystem result =
                new AnalyticModelSettingsElectricSystem(ruleSettings);

            callback.Invoke(result);
        }
Exemple #2
0
        public AnalyticModelElectricSystem(AnalyticModelSettingsElectricSystem settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }
            this.settings = settings;
            AnalyticRuleSettings setting = settings.RulesSettings.
                                           FirstOrDefault(r => r.RuleType == AnalyticRuleType.EngineStartUndervoltage);

            Rules.Add(new AnalyticRuleStartupUndervoltage(setting));
        }