resolve() {
        if (this.reset.value == 1) {
            this.state = this.preset.value || 0;
        } else if ((this.en.value == 1 || this.en.connections == 0) && this.S.value ^ this.R.value) {
            this.state = this.S.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 SRflipFlop
function to resolve SR flip flop if S != R we can
set this.state to value S.