Package jsynoptic.plugins.circuit

Examples of jsynoptic.plugins.circuit.CircuitConnection


        e2 = new LogicalEmiter(20, 20, 20, 20);
        e3 = new LogicalEmiter(20, 20, 20, 20);
  
        // connections
        CircuitConnection c1 = new CircuitConnection(1, 0, 0, 0);
        CircuitConnection c2 = new CircuitConnection(2, 0, 0, 0);
        CircuitConnection c3 = new CircuitConnection(3, 0, 0, 0);
        CircuitConnection c4 = new CircuitConnection(4, 0, 0, 0);
        CircuitConnection c5 = new CircuitConnection(5, 0, 0, 0);
        CircuitConnection c6 = new CircuitConnection(4, 0, 0, 0);

        c1.connect(e1.out, true);
        c1.connect(and1.in1, false);
       
        c2.connect(e2.out, true);
        c2.connect(or1.in1, false);
       
        c3.connect(or1.out, true);
        c3.connect(or2.in1, false);
       
        c4.connect(and1.out, true);
        c4.connect(or2.in2, false);
       
        c5.connect(or2.out, true);
        c5.connect(and1.in2, false);
       
        c6.connect(e3.out, true);
        c6.connect(or1.in2, false);
     
        e3.emitASignal(false);
        e1.emitASignal(true);
       
        System.out.println("All shall be false:");
View Full Code Here

TOP

Related Classes of jsynoptic.plugins.circuit.CircuitConnection

Copyright © 2018 www.massapicom. 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.