public IScenarioUnutilizedTimesResultElement Calculate( IScenarioUnutilizedTimesResultElementFactory scenarioUnutilizedTimesResultElementFactory, IΛIndexElement ΛIndexElement, IScenarioTotalTimes scenarioTotalTimes, IScenarioUtilizedTimes scenarioUtilizedTimes) { return(scenarioUnutilizedTimesResultElementFactory.Create( ΛIndexElement, scenarioTotalTimes.GetElementAtAsdecimal( ΛIndexElement) - scenarioUtilizedTimes.GetElementAtAsdecimal( ΛIndexElement))); }
public IScenarioUnutilizedTimesResultElementFactory CreateScenarioUnutilizedTimesResultElementFactory() { IScenarioUnutilizedTimesResultElementFactory factory = null; try { factory = new ScenarioUnutilizedTimesResultElementFactory(); } catch (Exception exception) { this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace); } return(factory); }
public IScenarioUnutilizedTimes Calculate( IScenarioUnutilizedTimesResultElementFactory scenarioUnutilizedTimesResultElementFactory, IScenarioUnutilizedTimesFactory scenarioUnutilizedTimesFactory, IScenarioUnutilizedTimesResultElementCalculation scenarioUnutilizedTimesResultElementCalculation, IΛ Λ, IScenarioTotalTimes scenarioTotalTimes, IScenarioUtilizedTimes scenarioUtilizedTimes) { return(scenarioUnutilizedTimesFactory.Create( Λ.Value .Select(w => scenarioUnutilizedTimesResultElementCalculation.Calculate( scenarioUnutilizedTimesResultElementFactory, w, scenarioTotalTimes, scenarioUtilizedTimes)) .ToImmutableList())); }
public IScenarioUnutilizedTimesResultElementFactory CreateScenarioUnutilizedTimesResultElementFactory() { IScenarioUnutilizedTimesResultElementFactory factory = null; try { factory = new ScenarioUnutilizedTimesResultElementFactory(); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(factory); }