private IBetaMemoryNode BuildBetaMemoryNode(ReteBuilderContext context, BetaNode betaNode) { var memoryNode = new BetaMemoryNode(); betaNode.Attach(memoryNode); return(memoryNode); }
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; }