Ejemplo n.º 1
0
 /** Creates a BetaMemory for the BetaNode's memory. */
 public Memory createMemory(final RuleBaseConfiguration config) {
   AccumulateMemory memory = new AccumulateMemory();
   memory.betaMemory = this.constraints.createBetaMemory(config, NodeTypeEnums.AccumulateNode);
   memory.workingMemoryContext = this.accumulate.createWorkingMemoryContext();
   memory.resultsContext = this.resultBinder.createContext();
   memory.alphaContexts = new ContextEntry[this.resultConstraints.length];
   for (int i = 0; i < this.resultConstraints.length; i++) {
     memory.alphaContexts[i] = this.resultConstraints[i].createContextEntry();
   }
   return memory;
 }