class BiScorer<A, B> extends AbstractScorer<BiTuple<A, B>> {

    private final BiFunction<A, B, UndoScoreImpacter> scoreImpacter;

    public BiScorer(String constraintPackage, String constraintName, Score<?> constraintWeight,
            BiFunction<A, B, UndoScoreImpacter> scoreImpacter, int inputStoreIndex) {
        super(constraintPackage, constraintName, constraintWeight, inputStoreIndex);
        this.scoreImpacter = scoreImpacter;
    }

    @Override
    protected UndoScoreImpacter impact(BiTuple<A, B> tuple) {<FILL_FUNCTION_BODY>}
}

        try {
            return scoreImpacter.apply(tuple.getFactA(), tuple.getFactB());
        } catch (Exception e) {
            throw createExceptionOnImpact(tuple, e);
        }
    
<methods>public final void insert(BiTuple<A,B>) ,public final void retract(BiTuple<A,B>) ,public final java.lang.String toString() ,public final void update(BiTuple<A,B>) <variables>private final non-sealed java.lang.String constraintId,private final non-sealed Score<?> constraintWeight,private final non-sealed int inputStoreIndex