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()));
 }
Exemplo n.º 2
0
        public Isrt Create(
            ImmutableList <IsrtCrossJoinElement> value)
        {
            Isrt crossJoin = null;

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

            return(crossJoin);
        }
 public IScenarioTotalTimesResultElement Calculate(
     IScenarioTotalTimesResultElementFactory scenarioTotalTimesResultElementFactory,
     IΛIndexElement ΛIndexElement,
     Isrt srt,
     IH H,
     Ix x)
 {
     return(scenarioTotalTimesResultElementFactory.Create(
                ΛIndexElement,
                srt.Value.Select(w =>
                                 x.GetElementAtAsint(
                                     w.sIndexElement,
                                     w.rIndexElement,
                                     w.tIndexElement)
                                 *
                                 H.Value.Value.Value)
                .Sum()));
 }
Exemplo n.º 4
0
 public Interfaces.Results.SurgeonOperatingRoomDayAssignments.Ix GetElementsAt(
     IxResultElementFactory xHatResultElementFactory,
     IxFactory xHatFactory,
     Isrt srt)
 {
     return(xHatFactory.Create(
                srt.Value
                .Select(
                    i => xHatResultElementFactory.Create(
                        i.sIndexElement,
                        i.rIndexElement,
                        i.tIndexElement,
                        this.GetElementAt(
                            i.sIndexElement,
                            i.rIndexElement,
                            i.tIndexElement)))
                .ToImmutableList()));
 }
 public IScenarioTotalTimes Calculate(
     IScenarioTotalTimesResultElementFactory scenarioTotalTimesResultElementFactory,
     IScenarioTotalTimesFactory scenarioTotalTimesFactory,
     IScenarioTotalTimesResultElementCalculation scenarioTotalTimesResultElementCalculation,
     IΛ Λ,
     Isrt srt,
     IH H,
     Ix x)
 {
     return(scenarioTotalTimesFactory.Create(
                Λ.Value
                .Select(w => scenarioTotalTimesResultElementCalculation.Calculate(
                            scenarioTotalTimesResultElementFactory,
                            w,
                            srt,
                            H,
                            x))
                .ToImmutableList()));
 }
Exemplo n.º 6
0
        public Isrt Create(
            ImmutableList <IsrtCrossJoinElement> value)
        {
            Isrt crossJoin = null;

            try
            {
                crossJoin = new srt(
                    value);
            }
            catch (Exception exception)
            {
                this.Log.Error(
                    exception.Message,
                    exception);
            }

            return(crossJoin);
        }
 public IScenarioUtilizedTimes Calculate(
     IScenarioUtilizedTimesResultElementFactory scenarioUtilizedTimesResultElementFactory,
     IScenarioUtilizedTimesFactory scenarioUtilizedTimesFactory,
     IScenarioUtilizedTimesResultElementCalculation scenarioUtilizedTimesResultElementCalculation,
     IΛ Λ,
     Isrt srt,
     Ih h,
     In n,
     IxHat xHat)
 {
     return(scenarioUtilizedTimesFactory.Create(
                Λ.Value
                .Select(w => scenarioUtilizedTimesResultElementCalculation.Calculate(
                            scenarioUtilizedTimesResultElementFactory,
                            w,
                            srt,
                            h,
                            n,
                            xHat))
                .ToImmutableList()));
 }