Package org.drools.guvnor.client.decisiontable.analysis.condition

Examples of org.drools.guvnor.client.decisiontable.analysis.condition.ConditionDetectorKey


    public ConditionDetector getConditionDetector(ConditionDetectorKey key) {
        return conditionDetectorMap.get(key);
    }

    public void putOrMergeConditionDetector(ConditionDetector conditionDetector) {
        ConditionDetectorKey key = conditionDetector.getKey();
        ConditionDetector originalConditionDetector = conditionDetectorMap.get(key);
        ConditionDetector mergedConditionDetector;
        if (originalConditionDetector == null) {
            mergedConditionDetector = conditionDetector;
        } else {
View Full Code Here


        return analysis;
    }

    private void detectImpossibleMatch(Analysis analysis) {
        for (Map.Entry<ConditionDetectorKey, ConditionDetector> entry : conditionDetectorMap.entrySet()) {
            ConditionDetectorKey key = entry.getKey();
            ConditionDetector conditionDetector = entry.getValue();
            if (conditionDetector.isImpossibleMatch()) {
                analysis.addImpossibleMatch("Impossible match on " + key.getFactField());
            }
        }
    }
View Full Code Here

    private void detectConflict(Analysis analysis, RowDetector otherRowDetector) {
        boolean overlappingCondition = true;
        boolean hasUnrecognizedCondition = false;
        for (Map.Entry<ConditionDetectorKey, ConditionDetector> entry : conditionDetectorMap.entrySet()) {
            ConditionDetectorKey key = entry.getKey();
            ConditionDetector conditionDetector = entry.getValue();
            ConditionDetector otherConditionDetector = otherRowDetector.getConditionDetector(key);
            // If 1 field is in both
            if (otherConditionDetector != null) {
                ConditionDetector mergedConditionDetector = conditionDetector.merge(otherConditionDetector);
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.decisiontable.analysis.condition.ConditionDetectorKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.