@Override
    public void configureConstraintWeight(Rule rule, Score_ constraintWeight) {
        if (constraintWeight.getInitScore() != 0) {
            throw new IllegalStateException("The initScore (" + constraintWeight.getInitScore() + ") must be 0.");
        }
        if (constraintMatchEnabled) {
            String constraintPackage = rule.getPackageName();
            String constraintName = rule.getName();
            String constraintId = constraintPackage + "/" + constraintName;
            constraintMatchTotalMap.put(constraintId,
                    new ConstraintMatchTotal(constraintPackage, constraintName, constraintWeight, zeroScore));
        }
    }
@Override
    public void configureConstraintWeight(Rule rule, Score_ constraintWeight) {
        if (constraintWeight.getInitScore() != 0) {
            throw new IllegalStateException("The initScore (" + constraintWeight.getInitScore() + ") must be 0.");
        }
        if (constraintMatchEnabled) {
            String constraintPackage = rule.getPackageName();
            String constraintName = rule.getName();
            String constraintId = constraintPackage + "/" + constraintName;
            constraintMatchTotalMap.put(constraintId,
                    new ConstraintMatchTotal(constraintPackage, constraintName, constraintWeight, zeroScore));
        }
    }
@ Override public void configureConstraintWeight ( Rule rule , Score_ constraintWeight ) { if ( constraintWeight . getInitScore ( ) != 0 ) { throw new IllegalStateException ( "The initScore (" + constraintWeight . getInitScore ( ) + ") must be 0." ) ; } if ( constraintMatchEnabled ) { String constraintPackage = rule . getPackageName ( ) ; String constraintName = rule . getName ( ) ; String constraintId = constraintPackage + "/" + constraintName ; constraintMatchTotalMap . put ( constraintId , new ConstraintMatchTotal ( constraintPackage , constraintName , constraintWeight , zeroScore ) ) ; } }
************************************************************************
************************************************************************