Esempio n. 1
0
            public override Evaluation evaluate(Path path, BranchState state)
            {
                int pathLength = path.Length();

                return(Evaluation.of(pathLength <= _depth, pathLength < _depth));
            }
Esempio n. 2
0
            public override Evaluation evaluate(Path path, BranchState state)
            {
                int length = path.Length();

                return(Evaluation.of(length >= _minDepth && length <= _maxDepth, length < _maxDepth));
            }