示例#1
0
        public override Connective Copy()
        {
            ConnectiveNand temp = new ConnectiveNand();

            temp.setLeftConnective(con1.Copy());
            temp.setRightConnective(con2.Copy());
            return(temp);
        }
示例#2
0
        public override Connective GetNandProposition()
        {
            ConnectiveNand thistemp = new ConnectiveNand();

            thistemp.setLeftConnective(con1.GetNandProposition());
            thistemp.setRightConnective(con2.GetNandProposition());
            return(thistemp);
        }
示例#3
0
        public override Connective GetNandProposition()
        {
            ConnectiveNand mainNand = new ConnectiveNand();
            ConnectiveNot  not      = new ConnectiveNot();

            mainNand.setLeftConnective(con1.GetNandProposition());
            not.setLeftConnective(con2.Copy());
            mainNand.setRightConnective(not.GetNandProposition());
            return(mainNand);
        }
        public override Connective GetNandProposition()
        {
            ConnectiveNand mainNand = new ConnectiveNand();
            ConnectiveNand nand1    = new ConnectiveNand();
            ConnectiveNand nand2    = new ConnectiveNand();
            ConnectiveNot  not1     = new ConnectiveNot();
            ConnectiveNot  not2     = new ConnectiveNot();

            not1.setLeftConnective(con1.Copy());
            not2.setLeftConnective(con2.Copy());
            nand2.setLeftConnective(not1.GetNandProposition());
            nand2.setRightConnective(not2.GetNandProposition());
            nand1.setLeftConnective(con1.GetNandProposition());
            nand1.setRightConnective(con2.GetNandProposition());
            mainNand.setLeftConnective(nand1);
            mainNand.setRightConnective(nand2);
            return(mainNand);
        }