AIMA.Core.Logic.Propositional.Parsing.AbstractPLVisitor.visitMultiSentence C# (CSharp) Méthode

visitMultiSentence() public méthode

public visitMultiSentence ( MultiSentence fs, Object arg ) : Object
fs AIMA.Core.Logic.Propositional.Parsing.Ast.MultiSentence
arg Object
Résultat Object
        public Object visitMultiSentence(MultiSentence fs, Object arg)
        {
            List<Sentence> terms = fs.getSentences();
            List<Sentence> newTerms = new List<Sentence>();
            for (int i = 0; i < terms.Count; i++)
            {
                Sentence s = (Sentence)terms[i];
                Sentence subsTerm = (Sentence)s.accept(this, arg);
                newTerms.Add(subsTerm);
            }
            return new MultiSentence(fs.getOperator(), newTerms);
        }