Пример #1
0
        public override object Visit(PairwiseLogicalClause clause)
        {
            string rel;

            if (clause.LogicalRelationship == PairwiseLogicalRelationship.And)
            {
                rel = "AND";
            }
            else if (clause.LogicalRelationship == PairwiseLogicalRelationship.Or)
            {
                rel = "OR";
            }
            else
            {
                throw new ArgumentException("" + clause.LogicalRelationship);
            }

            return(string.Format("(({0}) {1} ({2}))", clause.First.Accept(this), rel, clause.Second.Accept(this)));
        }
Пример #2
0
 public abstract object Visit(PairwiseLogicalClause clause);