public DefaultAgenda(final InternalWorkingMemory workingMemory) {
this.workingMemory = workingMemory;
if ( ((InternalRuleBase) this.workingMemory.getRuleBase()).getConfiguration().isSequential() ) {
this.knowledgeHelper = new SequentialKnowledgeHelper( this.workingMemory );
} else {
this.knowledgeHelper = new DefaultKnowledgeHelper( this.workingMemory );
}
this.agendaGroups = new HashMap();
this.activationGroups = new HashMap();
this.ruleFlowGroups = new HashMap();
this.focusStack = new LinkedList();