public void addMediumConstraintMatch ( RuleContext kcontext , BigDecimal mediumWeight ) { mediumScore = mediumScore . add ( mediumWeight ) ; registerConstraintMatch ( kcontext , ( ) -> mediumScore = mediumScore . subtract ( mediumWeight ) , ( ) -> HardMediumSoftBigDecimalScore . of ( BigDecimal . ZERO , mediumWeight , BigDecimal . ZERO ) ) ; }
Add a medium level constraint of specified weighting .