public override void Propagate(IInstanceState state) { SwitchInstance myState = state.Instance as SwitchInstance; Value curVal = myState == null ? Value.X : myState.currentValue; state.Set(0, curVal, 1); }
public override void Propagate(IInstanceState state) { Value in1 = state.Get(1); Value in2 = state.Get(2); state.Set(0, in1.Or(in2), 1); }
public override void Propagate(IInstanceState state) { Value incoming = state.Get(1); state.Set(0, incoming.Not, 1); }