예제 #1
0
        /// <summary>
        /// Connect with flow edges to children points
        /// </summary>
        internal void Connect()
        {
            if (_isConnected)
            {
                throw new NotSupportedException("Cannot connect block twice");
            }

            _isConnected = true;

            foreach (var child in _childrenBlocks)
            {
                LastPoint.AddFlowChild(child.FirstPoint);
            }
        }
예제 #2
0
        /// <summary>
        /// Append program point as last of contained points
        /// Is connected with flow edge to LastPoint
        /// </summary>
        /// <param name="programPoint">Appended point</param>
        internal void AppendFlow(ProgramPointBase programPoint)
        {
            LastPoint.AddFlowChild(programPoint);

            _containedPoints.Add(programPoint);
        }