protected bool IsWriteAllowed() { State state = this.CircuitState[this.write]; bool allowed = (state == this.writeOn && CircuitFunction.Not(state) == this.oldWriteState); this.oldWriteState = state; return(allowed); }
private void StateChangedAction(CircuitSymbol symbol, bool isPressed) { if (isPressed) { if (this.isToggle) { this.SetState(CircuitFunction.Not(this.State)); this.Invalid = true; } else { this.SetState(State.On1); } } else if (!this.isToggle) { this.SetState(State.On0); } }
public override bool Evaluate() { return(this.SetResult0(CircuitFunction.Not(this.And()))); }
public override bool Evaluate() { return(this.SetResult0(CircuitFunction.Not(this.CircuitState[this.param0]))); }