public IScenarioUnutilizedTimesResultElementCalculation Create()
        {
            IScenarioUnutilizedTimesResultElementCalculation calculation = null;

            try
            {
                calculation = new ScenarioUnutilizedTimesResultElementCalculation();
            }
            catch (Exception exception)
            {
                this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace);
            }

            return(calculation);
        }
Example #2
0
        public IScenarioUnutilizedTimesResultElementCalculation Create()
        {
            IScenarioUnutilizedTimesResultElementCalculation calculation = null;

            try
            {
                calculation = new ScenarioUnutilizedTimesResultElementCalculation();
            }
            catch (Exception exception)
            {
                this.Log.Error(
                    exception.Message,
                    exception);
            }

            return(calculation);
        }
Example #3
0
 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()));
 }