Package cl.alejo.jcsim.csim.gates

Examples of cl.alejo.jcsim.csim.gates.GateDescriptor


    // ********************************************************************************
    // El reloj
    // ********************************************************************************
    ParamClk paramClk = new ParamClk(300, 300);
    GateDescriptor descClk = new ClkDescriptor((ParamClk) paramClk.clone());
    Gate clk = new Clk(circuit, descClk, paramClk);
    IconGate iconClk = new IconGate(clk);
    circuit.addIconGate(iconClk, 100, 50);

    // El switch
    GateDescriptor descSwitch = new SwitchDescriptor((ParamSwitch) paramSwitch.clone());
    Gate switch1 = new Switch(circuit, descSwitch, paramSwitch);
    IconGate iconSwitch = new IconGate(switch1);
    circuit.addIconGate(iconSwitch, 300, 50);

    // Una banderita
    GateDescriptor descFlag = new FlagDescriptor();
    Gate flag = new Flag(circuit, descFlag, new ParamVoid());
    IconGate iconFlag = new IconGate(flag);
    circuit.addIconGate(iconFlag, 200, 50); // Superfluo

    // El lector de 7 segmentos
    GateDescriptor descDisp = new SegmentDisplayDescriptor((ParamSegmentDisplay) paramDisp.clone());
    Gate disp = new SegmentDisplay(circuit, descDisp, paramDisp);
    IconGate iconDisp = new IconGate(disp);
    circuit.addIconGate(iconDisp, 250, 50); // Superfluo */

    // Agrego el label
View Full Code Here

TOP

Related Classes of cl.alejo.jcsim.csim.gates.GateDescriptor

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.