Example #1
0
 public new object Clone()
 {
     ErrorSignal clone = new ErrorSignal(Error);
     return clone;
 }
Example #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);
 }
Example #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);
        }