Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Irt i   = new Irt(5);
            int res = i + 5;

            Console.WriteLine(res);
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ (ModifiedTarget != null ? ModifiedTarget.GetHashCode() : 0);
         result = (result * 397) ^ Irt.GetHashCode();
         result = (result * 397) ^ Standard.GetHashCode();
         result = (result * 397) ^ (TimeSource.HasValue ? TimeSource.Value : 0);
         return(result);
     }
 }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ (PeptideModSeq != null ? PeptideModSeq.GetHashCode() : 0);
         result = (result * 397) ^ Irt.GetHashCode();
         result = (result * 397) ^ Standard.GetHashCode();
         result = (result * 397) ^ (TimeSource.HasValue ? TimeSource.Value : 0);
         return(result);
     }
 }
Ejemplo n.º 4
0
 public Interfaces.Results.OperatingRoomDayAssignedAvailabilities.Iγ GetElementsAt(
     IγResultElementFactory γResultElementFactory,
     IγFactory γFactory,
     Irt rt)
 {
     return(γFactory.Create(
                rt.Value
                .Select(
                    i => γResultElementFactory.Create(
                        i.rIndexElement,
                        i.tIndexElement,
                        this.GetElementAt(
                            i.rIndexElement,
                            i.tIndexElement)))
                .ToImmutableList()));
 }
Ejemplo n.º 5
0
        public Irt Create(
            ImmutableList <IrtCrossJoinElement> value)
        {
            Irt crossJoin = null;

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

            return(crossJoin);
        }
Ejemplo n.º 6
0
        public Irt Create(
            ImmutableList <IrtCrossJoinElement> value)
        {
            Irt crossJoin = null;

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

            return(crossJoin);
        }
 public ISurgeonScenarioNumberPatients Calculate(
     ISurgeonScenarioNumberPatientsResultElementFactory surgeonScenarioNumberPatientsResultElementFactory,
     ISurgeonScenarioNumberPatientsFactory surgeonScenarioNumberPatientsFactory,
     ISurgeonScenarioNumberPatientsResultElementCalculation surgeonScenarioNumberPatientsResultElementCalculation,
     Irt rt,
     IsΛ sΛ,
     In n,
     Ix x)
 {
     return(surgeonScenarioNumberPatientsFactory.Create(
                sΛ.Value
                .Select(w => surgeonScenarioNumberPatientsResultElementCalculation.Calculate(
                            surgeonScenarioNumberPatientsResultElementFactory,
                            w.sIndexElement,
                            w.ΛIndexElement,
                            rt,
                            n,
                            x))
                .ToImmutableList()));
 }
Ejemplo n.º 8
0
 public ISurgeonScenarioNumberPatientsResultElement Calculate(
     ISurgeonScenarioNumberPatientsResultElementFactory surgeonScenarioNumberPatientsResultElementFactory,
     IsIndexElement sIndexElement,
     IΛIndexElement ΛIndexElement,
     Irt rt,
     In n,
     Ix x)
 {
     return(surgeonScenarioNumberPatientsResultElementFactory.Create(
                sIndexElement,
                ΛIndexElement,
                rt.Value
                .Select(a =>
                        x.GetElementAtAsint(
                            sIndexElement,
                            a.rIndexElement,
                            a.tIndexElement)
                        *
                        n.GetElementAtAsint(
                            sIndexElement,
                            ΛIndexElement))
                .Sum()));
 }
Ejemplo n.º 9
0
 public decrt(Irt next)
 {
 }
Ejemplo n.º 10
0
 static void Main(string[] args)
 {
     Irt i = new Irt(5);
     int res = i + 5;
     Console.WriteLine(res);
 }