Exemple #1
0
        public override IComparable Solve(t1 Variables)
        {
            IComparable lhs = LHS.Solve(Variables);
            IComparable rhs = RHS.Solve(Variables);

            return(this.GetBranchingValue(lhs, rhs));
        }
Exemple #2
0
        public static t4 GetLeafValue <t1, t2, t3, t4>(this ILeaf <t1, t2, t3> Leaf, t1 Variables)
            where t1 : IVariableCollection <t2>
            where t2 : IVariableCollectionKey
            where t3 : IRequiredVariables <t1, t2>
            where t4 : IComparable
        {
            IComparable val = Leaf.Solve(Variables);

            return((t4)val);
        }