resolve() {
        if (this.clockInp.value == 1 && this.dInp.value != undefined) {
            this.state = this.dInp.value;
        }

        if (this.qOutput.value != this.state) {
            this.qOutput.value = this.state;
            this.qInvOutput.value = this.flipBits(this.state);
            simulationArea.simulationQueue.add(this.qOutput);
            simulationArea.simulationQueue.add(this.qInvOutput);
        }

        this.setOutputsUpstream(true);
    }
@memberof Dlatch
when the clock input is high we update the state
qOutput is set to the state