Package cl.alejo.jcsim.csim.gates

Source Code of cl.alejo.jcsim.csim.gates.NotDescriptor

package cl.alejo.jcsim.csim.gates;

/**
*
* jcsim
*
* Created on Jul 17, 2004
*
* This program is distributed under the terms of the GNU General Public License
* The license is included in license.txt
*
* @author: Alejandro Vera
*/

import cl.alejo.jcsim.csim.circuit.Circuit;
import cl.alejo.jcsim.csim.circuit.Point;
import cl.alejo.jcsim.csim.dom.Gate;

public class NotDescriptor extends IconGateDescriptor {
  /**
   * AndDesc constructor comment.
   */
  public NotDescriptor(GateParameters params) {
    super();
    this.params = params;
    this.pointPin = new Point[2];
    this.pointPin[0] = new Point(-16, 0); // El pinIn
    this.pointPin[1] = new Point(16, 0); // El pinOut
    this.sGateName = "NotDesc";
    this.pinCount = 2;
  }

  /**
   * Insert the method's description here. Creation date: (26/06/01 21:27:43)
   *
   * @return csim.Gate
   * @param params
   *            gates.GateParameters
   */
  public Gate make(Circuit circuit, GateParameters params) {

    // La compuerta
    return new Not(circuit, (GateDescriptor) this, (GateParameters) params.clone());
  }
}
TOP

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

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.