예제 #1
0
파일: NotNode.java 프로젝트: JaneVan/drools
  public NotNode(
      final int id,
      final LeftTupleSource leftInput,
      final ObjectSource rightInput,
      final BetaConstraints joinNodeBinder,
      final BuildContext context) {
    super(
        id,
        context.getPartitionId(),
        context.getKnowledgeBase().getConfiguration().isMultithreadEvaluation(),
        leftInput,
        rightInput,
        joinNodeBinder,
        context);
    this.tupleMemoryEnabled = context.isTupleMemoryEnabled();

    // The reason why this is here is because forall can inject a
    //  "this == " + BASE_IDENTIFIER $__forallBaseIdentifier
    // Which we don't want to actually count in the case of forall node linking
    emptyBetaConstraints =
        joinNodeBinder.getConstraints().length == 0 || context.isEmptyForAllBetaConstraints();
  }