Beispiel #1
0
        public override bool evaluate(CustomTermEvaluater functionsolver)
        {
            switch (type)
            {
            case Type.And:
                return(eq1.evaluate(functionsolver) && eq2.evaluate(functionsolver));

            case Type.Or:
                return(eq1.evaluate(functionsolver) || eq2.evaluate(functionsolver));

            case Type.Unary:
                return(((TermInequality)eq1).evaluate(functionsolver));
            }
            throw new NotImplementedException();
        }
Beispiel #2
0
 public override object GetValue(CustomTermEvaluater functionsolver)
 {
     return(inequality.evaluate(functionsolver));
 }