Package sw_digitalworks.Model

Examples of sw_digitalworks.Model.Gate.Connect()


        Gate cp1 = new AndGate("AND G",2);
        Gate cp2 = new NandGate("NAND G",2);
        //Kapuk összekötése
        cp1.Connect(cp2.getInPorts()[0]);
        cp2.Connect(cp1.getInPorts()[1]);
        //LEDEK bekötése
        cp1.Connect(ComponentModel.leds.getByName("LED 1"));
        cp2.Connect(ComponentModel.leds.getByName("LED 2"));
        //Inputok bekötése
        ip1.Connect(cp1.getInPorts()[0]);
View Full Code Here


        //Kapuk összekötése
        cp1.Connect(cp2.getInPorts()[0]);
        cp2.Connect(cp1.getInPorts()[1]);
        //LEDEK bekötése
        cp1.Connect(ComponentModel.leds.getByName("LED 1"));
        cp2.Connect(ComponentModel.leds.getByName("LED 2"));
        //Inputok bekötése
        ip1.Connect(cp1.getInPorts()[0]);
        ip2.Connect(cp2.getInPorts()[1]);
         try {
            //Set the values of InPorts
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.