public AgendaGroupQueueImpl(final String name,
final InternalRuleBase ruleBase) {
this.name = name;
if (ruleBase.getConfiguration().isPhreakEnabled()) {
this.priorityQueue = new BinaryHeapQueue(new PhreakConflictResolver());
} else {
if (ruleBase.getConfiguration().isSequential()) {
this.priorityQueue = new BinaryHeapQueue(new SequentialConflictResolver());
} else {
this.priorityQueue = new BinaryHeapQueue(ruleBase.getConfiguration().getConflictResolver());
}
}
this.clearedForRecency = -1;
}