@Override
	public void simulate() {
		if (!this.pins[0].getType().equals("NC") && !this.pins[0].getType().equals("IN") && !this.pins[1].getType().equals("NC") && !this.pins[1].getType().equals("IN")) {
			if (this.pins[0].getPotential().toTTL().equals("HIGH") && this.pins[1].getPotential().toTTL().equals("LOW")) {
				this.lit = true;
			} else {
				this.lit = false;
			}
		} else {
			this.lit = false;
			this.repaint();
		}
		this.repaint();
		if (this.circuit.selected == this) {
			this.circuit.select(this);
		}
	}