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);
        }
Exemple #2
0
        public override void Propagate(IInstanceState state)
        {
            Value in1 = state.Get(1);
            Value in2 = state.Get(2);

            state.Set(0, in1.Or(in2), 1);
        }
Exemple #3
0
        public override void Propagate(IInstanceState state)
        {
            Value incoming = state.Get(1);

            state.Set(0, incoming.Not, 1);
        }