Example #1
0
        public int Execute(ContainerTest containerTest, int occurance, out bool applicable)
        {
            int rasterIndex = containerTest.GetRasterIndex(RasterReference, occurance);

            applicable = true;
            return(containerTest.Execute(this, rasterIndex));
        }
Example #2
0
        public int Execute(ContainerTest containerTest, int occurance, out bool applicable)
        {
            IRow row = Row;
            int  involvedTableIndex = containerTest.GetTableIndex(row.Table, occurance);

            if (containerTest.GetQueriedOnly(involvedTableIndex))
            {
                applicable = false;
                return(0);
            }

            if (!containerTest.CheckConstraint(row, involvedTableIndex))
            {
                applicable = false;
                return(0);
            }

            // constraint is fulfilled
            if (containerTest.IsOutsideAreaOfInterest(row))
            {
                applicable = false;
                return(0);
            }

            // the test is applicable for the row, run it
            applicable = true;
            return(containerTest.Execute(row, involvedTableIndex, RecycleUnique));
        }
Example #3
0
        public int Execute(ContainerTest containerTest, int occurance, out bool applicable)
        {
            int index = containerTest.GetTerrainIndex(TerrainReference, occurance);

            applicable = true;
            return(containerTest.Execute(this, index));
        }
            protected ErrorPostProcessor(
                [NotNull] ContainerTest test,
                [NotNull] IFeatureClass featureClass)
            {
                Test         = test;
                FeatureClass = featureClass;

                ITable table = (ITable)FeatureClass;

                _tableIndex = Test.AddInvolvedTable(
                    table, default(string), default(bool), queriedOnly: true);

                test.PostProcessError += ValidateError;
            }
 public ContainsPostProcessor(
     [NotNull] ContainerTest test,
     [NotNull] IFeatureClass featureClass)
     : base(test, featureClass)
 {
 }
Example #6
0
 public void SetSuccess(ContainerTest containerTest, bool success)
 {
     _success[ApplicableTests.IndexOf(containerTest)] = success;
 }