Beispiel #1
0
        public bool Equals(RescueRule example)
        {
            bool myReturn = Equals2(nativeNdx
                                    , (example == null) ? 0 : example.nativeNdx);

            return(myReturn);
        }
        public int registerRule(RescueRule rule)
        {
            int myReturn = registerRule1(nativeNdx
                                         , (rule == null) ? 0 : rule.nativeNdx);

            return(myReturn);
        }
Beispiel #3
0
        public RescueClassificationResult PreviouslyApplied(RescueRule exampleRule)
        {
            long returnNdx = PreviouslyApplied8(nativeNdx
                                                , (exampleRule == null) ? 0 : exampleRule.nativeNdx);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueClassificationResult myReturn = new RescueClassificationResult(returnNdx);
                return(myReturn);
            }
        }
Beispiel #4
0
 public RescueClassificationResult(RescueRule rule,
                                   int result)
 {
     nativeNdx = Create_RescueClassificationResult0((rule == null) ? 0 : rule.nativeNdx,
                                                    result);
 }
        public RescueRule classify(RescueClassificationContext context,
                                   bool doAll)
        {
            long returnNdx = classify3(nativeNdx
                                       , (context == null) ? 0 : context.nativeNdx
                                       , doAll);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueRule myReturn  = new RescueRule(returnNdx);
                String     className = myReturn.ClassName();
                if (className.equals("class RescueBlockAndUnitNumbersRule"))
                {
                    myReturn = new RescueBlockAndUnitNumbersRule(returnNdx);
                }
                else if (className.equals("class RescueBlockNameRule"))
                {
                    myReturn = new RescueBlockNameRule(returnNdx);
                }
                else if (className.equals("class RescueBUHRule"))
                {
                    myReturn = new RescueBUHRule(returnNdx);
                }
                else if (className.equals("class RescueFaultLimitRule"))
                {
                    myReturn = new RescueFaultLimitRule(returnNdx);
                }
                else if (className.equals("class RescueGoodVolumeRule"))
                {
                    myReturn = new RescueGoodVolumeRule(returnNdx);
                }
                else if (className.equals("class RescueHaveFaultRelationshipsRule"))
                {
                    myReturn = new RescueHaveFaultRelationshipsRule(returnNdx);
                }
                else if (className.equals("class RescueHaveFaultRule"))
                {
                    myReturn = new RescueHaveFaultRule(returnNdx);
                }
                else if (className.equals("class RescueHaveTipLoopRule"))
                {
                    myReturn = new RescueHaveTipLoopRule(returnNdx);
                }
                else if (className.equals("class RescueLayerToUnitRule"))
                {
                    myReturn = new RescueLayerToUnitRule(returnNdx);
                }
                else if (className.equals("class RescueLGRIDRule"))
                {
                    myReturn = new RescueLGRIDRule(returnNdx);
                }
                else if (className.equals("class RescueMultiBlockRule"))
                {
                    myReturn = new RescueMultiBlockRule(returnNdx);
                }
                else if (className.equals("class RescueNoGlobalsRule"))
                {
                    myReturn = new RescueNoGlobalsRule(returnNdx);
                }
                else if (className.equals("class RescueOneBUPerURule"))
                {
                    myReturn = new RescueOneBUPerURule(returnNdx);
                }
                else if (className.equals("class RescueParameterizedSurfaceRule"))
                {
                    myReturn = new RescueParameterizedSurfaceRule(returnNdx);
                }
                else if (className.equals("class RescuePassRule"))
                {
                    myReturn = new RescuePassRule(returnNdx);
                }
                else if (className.equals("class RescueRefIdRule"))
                {
                    myReturn = new RescueRefIdRule(returnNdx);
                }
                else if (className.equals("class RescueSplitNodesRule"))
                {
                    myReturn = new RescueSplitNodesRule(returnNdx);
                }
                else if (className.equals("class RescueStandardModelPropertyGroupingRule"))
                {
                    myReturn = new RescueStandardModelPropertyGroupingRule(returnNdx);
                }
                else if (className.equals("class RescueStandardPropertyGroupingRule"))
                {
                    myReturn = new RescueStandardPropertyGroupingRule(returnNdx);
                }
                else if (className.equals("class RescueUnitNameRule"))
                {
                    myReturn = new RescueUnitNameRule(returnNdx);
                }
                else if (className.equals("class RescueVersionRule"))
                {
                    myReturn = new RescueVersionRule(returnNdx);
                }
                return(myReturn);
            }
        }