public LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled) { return new LeftTupleImpl(leftTuple, rightTuple, currentLeftChild, currentRightChild, sink, leftTupleMemoryEnabled ); } public Memory createMemory(RuleBaseConfiguration config, InternalWorkingMemory wm) {
public void run() { int numAttempts = 0; try { while (numAttempts < NUMER_ATTEMPTS) { doOperation(); numAttempts++; } } catch (Throwable t) { error = t; } }
public void dump(KieBase kbase ) { dump((InternalKnowledgeBase) kbase); }
@Test public void testRtnNoConstraintsNoWatches() { String rule1 = "A()"; KieBase kbase = getKnowledgeBase(rule1); InternalWorkingMemory wm = ((InternalWorkingMemory)kbase.newKieSession()); ObjectTypeNode otn = getObjectTypeNode(kbase, "A" ); assertNotNull( otn ); LeftInputAdapterNode liaNode = ( LeftInputAdapterNode ) otn.getObjectSinkPropagator().getSinks()[0]; RuleTerminalNode rtNode = ( RuleTerminalNode ) liaNode.getSinkPropagator().getSinks()[0]; assertEquals( EmptyBitMask.get(), rtNode.getDeclaredMask() ); assertEquals( EmptyBitMask.get(), rtNode.getInferredMask() ); }
public static void compare(Rete rete1, Rete rete2) { for (EntryPointNode epn1 : rete1.getEntryPointNodes().values()) { EntryPointNode epn2 = rete2.getEntryPointNode( epn1.getEntryPoint() ); compareNodes( epn1, epn2 ); } }
public void traverseRete(Rete rete, BiConsumer<BaseNode, String> consumer) { for (EntryPointNode entryPointNode : rete.getEntryPointNodes().values()) { dumpNode( entryPointNode, "", new HashSet<BaseNode>(), consumer); } }
public MockEvalCondition(final boolean isAllowed, final Declaration[] requiredDeclarations) { super( requiredDeclarations ); setEvalExpression( this.expression ); setIsAllowed( isAllowed ); }
BlockedThread(String name) { super(name); setDaemon(true); }
public Memory createMemory(final RuleBaseConfiguration config, InternalWorkingMemory wm) { return new PathMemory(null, null); }
public Memory createMemory(RuleBaseConfiguration config, InternalWorkingMemory wm) { return super.createMemory( config, wm); }
public LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled) { return new LeftTupleImpl(leftTuple, rightTuple, currentLeftChild, currentRightChild, sink, leftTupleMemoryEnabled ); }
public LeftTuple createLeftTuple(final InternalFactHandle factHandle, final LeftTuple leftTuple, final Sink sink) { return new LeftTupleImpl(factHandle,leftTuple, sink ); }
public LeftTuple createLeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled) { return new LeftTupleImpl(leftTuple,sink, pctx, leftTupleMemoryEnabled ); }
public LeftTuple createLeftTuple(final InternalFactHandle factHandle, final LeftTuple leftTuple, final Sink sink) { return new LeftTupleImpl(factHandle,leftTuple, sink ); }
public LeftTuple createLeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled) { return new LeftTupleImpl(leftTuple,sink, pctx, leftTupleMemoryEnabled ); }
public LeftTuple createLeftTuple(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled) { return new LeftTupleImpl(factHandle, sink, leftTupleMemoryEnabled ); }
public LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled) { return new LeftTupleImpl(leftTuple, rightTuple, currentLeftChild, currentRightChild, sink, leftTupleMemoryEnabled ); }
public LeftTuple createLeftTuple(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled) { return new LeftTupleImpl(factHandle, sink, leftTupleMemoryEnabled ); }
public LeftTuple createLeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled) { return new LeftTupleImpl(leftTuple,sink, pctx, leftTupleMemoryEnabled ); }
public LeftTuple createLeftTuple(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled) { return new LeftTupleImpl(factHandle, sink, leftTupleMemoryEnabled ); }