示例#1
0
 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);
        }
示例#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()));
 }
示例#4
0
        public IScenarioUnutilizedTimesResultElementFactory CreateScenarioUnutilizedTimesResultElementFactory()
        {
            IScenarioUnutilizedTimesResultElementFactory factory = null;

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

            return(factory);
        }