public IScenarioUtilizedTimesResultElementCalculation Create() { IScenarioUtilizedTimesResultElementCalculation calculation = null; try { calculation = new ScenarioUtilizedTimesResultElementCalculation(); } catch (Exception exception) { this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace); } return(calculation); }
public IScenarioUtilizedTimesResultElementCalculation Create() { IScenarioUtilizedTimesResultElementCalculation calculation = null; try { calculation = new ScenarioUtilizedTimesResultElementCalculation(); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(calculation); }
public IScenarioUtilizedTimes Calculate( IScenarioUtilizedTimesResultElementFactory scenarioUtilizedTimesResultElementFactory, IScenarioUtilizedTimesFactory scenarioUtilizedTimesFactory, IScenarioUtilizedTimesResultElementCalculation scenarioUtilizedTimesResultElementCalculation, IΛ Λ, Isrt srt, Ih h, In n, Ix x) { return(scenarioUtilizedTimesFactory.Create( Λ.Value .Select(w => scenarioUtilizedTimesResultElementCalculation.Calculate( scenarioUtilizedTimesResultElementFactory, w, srt, h, n, x)) .ToImmutableList())); }