Пример #1
0
 public Stub(
     Stub<HandleType> primaryParent,
     Stub<HandleType> secondaryParent,
     Tuple variablesTuple,
     HandleType handle) {
   this(variablesTuple.invertIndex(), variablesTuple, handle);
   this.primaryParentStub = primaryParent;
   this.secondaryParentStub = secondaryParent;
   constraints.addAll(primaryParent.getAllEnforcedConstraints());
   constraints.addAll(secondaryParent.getAllEnforcedConstraints());
 }
 @Override
 protected CourseWithPrimeWeightMatch tupleToMatch(final Tuple t) {
   try {
     return new CourseWithPrimeWeightMatch.Immutable((school.Course) t.get(POSITION_C));
   } catch (ClassCastException e) {
     engine
         .getLogger()
         .error(
             "Element(s) in tuple not properly typed!",
             e); // throw new IncQueryRuntimeException(e.getMessage());
     return null;
   }
 }
Пример #3
0
 public Stub(Tuple variablesTuple, HandleType handle) {
   this(variablesTuple.invertIndex(), variablesTuple, handle);
 }