Пример #1
0
        public override bool Calculate()
        {
            bool leftResult  = LeftSuccessor.Calculate();
            bool rightResult = RightSuccessor.Calculate();

            return(!(leftResult && rightResult));
        }
Пример #2
0
        public override bool Calculate()
        {
            if (LeftSuccessor.Calculate() == true && (RightSuccessor.Calculate() == false))
            {
                return(false);
            }

            return(true);
        }
Пример #3
0
 public override double Calculate(double x)
 {
     return(Math.Pow(LeftSuccessor.Calculate(x), RightSuccessor.Calculate(x)));
 }
Пример #4
0
 public override double Calculate(double x)
 {
     return(LeftSuccessor.Calculate(x) * RightSuccessor.Calculate(x));
 }
Пример #5
0
 public override bool Calculate()
 {
     // Will be true if both left and right successor are true or false
     return(LeftSuccessor.Calculate() == RightSuccessor.Calculate());
 }
Пример #6
0
 public override bool Calculate()
 {
     return(LeftSuccessor.Calculate() && RightSuccessor.Calculate());
 }