public Memory createMemory ( final RuleBaseConfiguration config , InternalWorkingMemory wm ) { BetaMemory betaMemory = this . constraints . createBetaMemory ( config , NodeTypeEnums . AccumulateNode ) ; AccumulateMemory memory = this . accumulate . isMultiFunction ( ) ? new MultiAccumulateMemory ( betaMemory , this . accumulate . getAccumulators ( ) ) : new SingleAccumulateMemory ( betaMemory , this . accumulate . getAccumulators ( ) [ 0 ] ) ; memory . workingMemoryContext = this . accumulate . createWorkingMemoryContext ( ) ; memory . resultsContext = this . resultBinder . createContext ( ) ; return memory ; }
Creates a BetaMemory for the BetaNode s memory .