示例#1
0
 public new object Clone()
 {
     ErrorSignal clone = new ErrorSignal(Error);
     return clone;
 }
示例#2
0
 /// <summary>
 /// All connections signalled false - send nil to all preceding nodes
 /// </summary>
 /// <param name="sender"></param>
 protected override void OnAllFiltered(FilteredList<IColorable> sender)
 {
     if (!SignalIfCan())
         return;
     var exceptionChain = BuildExceptionChain(Connections);
     Signal = new ErrorSignal(new GraphExceptionAllPossibilitiesFailed(this, exceptionChain));
     InvokeOnNotifyBack();
     if (Parent != null)
         Parent.NotifyBack(this, Signal);
 }
示例#3
0
        private void OnAllOutputSignalled(FilteredList<IColorable> sender)
        {
            if (!SignalIfCan())
                return;
            var exceptionChain = BuildExceptionChain(Output);
            Signal = new ErrorSignal(new GraphExceptionAllPossibilitiesFailed(this, exceptionChain));

            base.NotifyBack(this, Signal);
            InvokeOnNotifyBack();

            Input.NotifyBack(this, Signal);
        }