Ejemplo n.º 1
0
        public RescueLogicalOrderEntry NthObject(long zeroBasedOrdinal)
        {
            long returnNdx = NthObject1(nativeNdx
                                        , zeroBasedOrdinal);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueLogicalOrderEntry myReturn = new RescueLogicalOrderEntry(returnNdx);
                int isA = myReturn.IsA();
                switch (isA)
                {
                case RescueObject.R_RescueEventDescr:
                    myReturn = new RescueEventDescr(returnNdx);
                    break;

                case RescueObject.R_RescueHorizon:
                    myReturn = new RescueHorizon(returnNdx);
                    break;

                case RescueObject.R_RescueUnit:
                    myReturn = new RescueUnit(returnNdx);
                    break;
                }
                return(myReturn);
            }
        }
Ejemplo n.º 2
0
        public RescueLogicalOrderEntry UnconformityEventBelow(RescueEventDescr existingObject)
        {
            long returnNdx = UnconformityEventBelow16(nativeNdx
                                                      , (existingObject == null) ? 0 : existingObject.nativeNdx);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueLogicalOrderEntry myReturn = new RescueLogicalOrderEntry(returnNdx);
                int isA = myReturn.IsA();
                switch (isA)
                {
                case RescueObject.R_RescueEventDescr:
                    myReturn = new RescueEventDescr(returnNdx);
                    break;

                case RescueObject.R_RescueHorizon:
                    myReturn = new RescueHorizon(returnNdx);
                    break;

                case RescueObject.R_RescueUnit:
                    myReturn = new RescueUnit(returnNdx);
                    break;
                }
                return(myReturn);
            }
        }