Package cl.alejo.jcsim.csim.gates

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

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 TreeStateDescriptor extends IconGateDescriptor {
  /**
   * AndDesc constructor comment.
   */
  public TreeStateDescriptor(GateParameters params) {
    super();
    this.params = params;
    this.pointPin = new Point[3];
    this.pointPin[0] = new Point(0, 16); // El pinOut
    this.pointPin[1] = new Point(16, 0); // El pinIn
    this.pointPin[2] = new Point(-16, 0);
    this.sGateName = "TreeStateDesc";
    this.pinCount = 3;
  }

  /**
   * 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) {
    return new TreeState(circuit, (GateDescriptor) this, (GateParameters) params.clone());
  }
}
TOP

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

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.