- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {StringBuilder s =
new StringBuilder()
new StringBuilder(32)
String str;new StringBuilder(str)
- Smart code suggestions by Codota
}
public void fireUntilHalt(final AgendaFilter agendaFilter) { unstageActivations(); this.halt.set( false ); while ( continueFiring( -1 ) ) { boolean fired = fireNextItem( agendaFilter ); fired = fired || !((AbstractWorkingMemory) this.workingMemory).getActionQueue().isEmpty(); this.workingMemory.executeQueuedActions(); if ( !fired ) { try { synchronized ( this.halt ) { if( !this.halt.get() ) this.halt.wait(); } } catch ( InterruptedException e ) { this.halt.set( true ); } } else { this.workingMemory.executeQueuedActions(); } } }
public int fireAllRules(AgendaFilter agendaFilter, int fireLimit) { unstageActivations(); this.halt.set( false ); int fireCount = 0; while ( continueFiring( fireLimit ) && fireNextItem( agendaFilter ) ) { fireCount++; fireLimit = updateFireLimit( fireLimit ); this.workingMemory.executeQueuedActions(); } if ( this.focusStack.size() == 1 && getMainAgendaGroup().isEmpty() ) { // the root MAIN agenda group is empty, reset active to false, so it can receive more activations. getMainAgendaGroup().setActive( false ); } return fireCount; }
workingMemory); workingMemory.executeQueuedActions(); context.setActiveWindowTupleList(null); } finally {
workingMemory.executeQueuedActions();
this.workingMemory.executeQueuedActions(); this.workingMemory.executeQueuedActions();
private static void assertHandleIntoOTN(MarshallerReaderContext context, InternalWorkingMemory wm, InternalFactHandle handle) { Object object = handle.getObject(); InternalWorkingMemoryEntryPoint ep = (InternalWorkingMemoryEntryPoint) handle.getEntryPoint(); ObjectTypeConf typeConf = ((InternalWorkingMemoryEntryPoint) handle.getEntryPoint()).getObjectTypeConfigurationRegistry().getObjectTypeConf( ep.getEntryPoint(), object ); PropagationContextImpl propagationContext = new PropagationContextImpl( wm.getNextPropagationIdCounter(), PropagationContext.ASSERTION, null, null, handle, ((DefaultAgenda) wm.getAgenda()).getActiveActivations(), ((DefaultAgenda) wm.getAgenda()).getDormantActivations(), ep.getEntryPoint(), context); ep.getEntryPointNode().assertObject( handle, propagationContext, typeConf, wm ); propagationContext.evaluateActionQueue( wm ); wm.executeQueuedActions(); propagationContext.cleanReaderContext(); }