public Activation[] getActivations() { Activation[] activations = new Activation[ list.size() ]; final Iterator<ActivationNode> it = this.list.iterator(); int i = 0; for ( ActivationNode node = it.next(); node != null; node = it.next() ) { activations[i++] = node.getActivation(); } return activations; }
public Activation[] getActivations() { Activation[] activations = new Activation[this.size]; int j = 0; for ( LinkedList<LinkedListEntry<Activation>> list : array ) { if ( list != null ) { Iterator<LinkedListEntry<Activation>> it = list.iterator(); Activation activation = it.next().getObject(); while ( activation != null) { activations[j++] = activation; activation = it.next().getObject(); } } } return activations; }
private void triggerActivations() { // iterate all activations adding them to their AgendaGroups final Iterator<ActivationNode> it = this.list.iterator(); for ( ActivationNode node = it.next(); node != null; node = it.next() ) { final Activation activation = node.getActivation(); ((InternalAgendaGroup) activation.getAgendaGroup()).add( activation ); } // making sure we re-evaluate agenda in case we are waiting for activations ((InternalAgenda) workingMemory.getAgenda()).notifyHalt(); }
((EventSupport) this.workingMemory).getAgendaEventSupport().fireBeforeRuleFlowGroupDeactivated( this, this.workingMemory ); final Iterator<ActivationNode> it = this.list.iterator(); for ( ActivationNode node = it.next(); node != null; node = it.next() ) { final Activation activation = node.getActivation();