Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 4
0
            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;
            }
Exemplo n.º 5
0
 public ContainsPostProcessor(
     [NotNull] ContainerTest test,
     [NotNull] IFeatureClass featureClass)
     : base(test, featureClass)
 {
 }
Exemplo n.º 6
0
 public void SetSuccess(ContainerTest containerTest, bool success)
 {
     _success[ApplicableTests.IndexOf(containerTest)] = success;
 }