public IScenarioUtilizedTimesResultElement Calculate( IScenarioUtilizedTimesResultElementFactory scenarioUtilizedTimesResultElementFactory, IΛIndexElement ΛIndexElement, Isrt srt, Ih h, In n, Ix x) { return(scenarioUtilizedTimesResultElementFactory.Create( ΛIndexElement, srt.Value.Select(w => x.GetElementAtAsint( w.sIndexElement, w.rIndexElement, w.tIndexElement) * n.GetElementAtAsint( w.sIndexElement, ΛIndexElement) * h.GetElementAtAsdecimal( w.sIndexElement, ΛIndexElement)) .Sum())); }
public Ih Create( ImmutableList <IhParameterElement> value) { Ih parameter = null; try { parameter = new h( value); } catch (Exception exception) { this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace); } return(parameter); }
public Ih Create( ImmutableList<IhParameterElement> value) { Ih parameter = null; try { parameter = new h( value); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return parameter; }
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())); }