示例#1
0
        private IBetaMemoryNode BuildBetaMemoryNode(ReteBuilderContext context, BetaNode betaNode)
        {
            var memoryNode = new BetaMemoryNode();

            betaNode.Attach(memoryNode);
            return(memoryNode);
        }
示例#2
0
        private void BuildBetaMemoryNode(ReteBuilderContext context, BetaNode betaNode)
        {
            BetaMemoryNode memoryNode = betaNode.MemoryNode;

            if (memoryNode == null)
            {
                memoryNode          = new BetaMemoryNode();
                memoryNode.Id       = GetNodeId();
                betaNode.MemoryNode = memoryNode;
            }
            betaNode.MemoryNode.NodeInfo.Add(context.Rule);
            context.BetaSource = betaNode.MemoryNode;
        }