Exemplo n.º 1
0
            private IProcess GetNilDriver()
            {
                Array  enumValues   = _tState.GetEnumValues();
                object defaultState = Activator.CreateInstance(_tState);

                return(_altState.Instance.DriveUT(SignalSource.CreateUT(defaultState)));
            }
Exemplo n.º 2
0
            private IProcess GetStateDriver(BranchLabel target)
            {
                Array enumValues = _tState.GetEnumValues();

                Debug.Assert(target.CStep >= 0 && target.CStep < enumValues.Length);
                object stateValue = enumValues.GetValue(target.CStep);

                return(_altState.Instance.DriveUT(SignalSource.CreateUT(stateValue)));
            }
Exemplo n.º 3
0
 public override IProcess ToProcess()
 {
     return(Target.ToSignal().DriveUT(SignalSource.CreateUT(Value)));
 }