예제 #1
0
        public override void MultipleOutputUpdate(double data)
        {
            if (_callee.FieldNames.Length <= 1)
            {
                _callee.SingleOutputUpdate(data);

                _caller.MultipleOutputUpdate(_callee.Value);
            }
            else
            {
                throw new InvalidOperationException(
                          "callee has multiple outputs, and caller can't handle it");
            }
        }
예제 #2
0
        public override double[] MultipleOutputUpdate(double data)
        {
            double calleeResult;

            if (_callee.FieldNames.Length <= 1)
            {
                calleeResult = _callee.SingleOutputUpdate(data);

                return(_caller.MultipleOutputUpdate(calleeResult));
            }
            else
            {
                throw new InvalidOperationException(
                          "callee has multiple outputs, and caller can't handle it");
            }
        }