Beispiel #1
0
        public string AskNetwork(gateValue val, double[] input)
        {
            List <double> inputList = new List <double>(input);

            switch (val)
            {
            case gateValue.AND:
                return(networkAND.AksNetwork(inputList));

            case gateValue.OR:
                return(networkOR.AksNetwork(inputList));

            case gateValue.NOT:
                return(networkNOT.AksNetwork(inputList));
            }
            return("");
        }