Examples of ActionDetectorKey


Examples of org.drools.guvnor.client.decisiontable.analysis.action.ActionDetectorKey

    }

    private ActionDetector buildActionDetector(GuidedDecisionTable52 model,
                                               ActionCol52 actionCol,
                                               DTCellValue52 realCellValue) {
        ActionDetectorKey key;
        if ( actionCol instanceof ActionSetFieldCol52 ) {
            key = new SetFieldColActionDetectorKey( (ActionSetFieldCol52) actionCol );
        } else if ( actionCol instanceof ActionInsertFactCol52 ) {
            key = new InsertFactActionDetectorKey( (ActionInsertFactCol52) actionCol );
        } else {
View Full Code Here

Examples of org.drools.guvnor.client.decisiontable.analysis.action.ActionDetectorKey

    public ActionDetector getActionDetector(ActionDetectorKey key) {
        return actionDetectorMap.get(key);
    }

    public void putOrMergeActionDetector(ActionDetector actionDetector) {
        ActionDetectorKey key = actionDetector.getKey();
        ActionDetector originalActionDetector = actionDetectorMap.get(key);
        ActionDetector mergedActionDetector;
        if (originalActionDetector == null) {
            mergedActionDetector = actionDetector;
        } else {
View Full Code Here

Examples of org.drools.guvnor.client.decisiontable.analysis.action.ActionDetectorKey

        }
    }

    private void detectMultipleValuesForOneAction(Analysis analysis) {
        for (Map.Entry<ActionDetectorKey, ActionDetector> entry : actionDetectorMap.entrySet()) {
            ActionDetectorKey key = entry.getKey();
            ActionDetector actionDetector = entry.getValue();
            if (actionDetector.isMultipleValuesForOneAction()) {
                analysis.addMultipleValuesForOneAction("Multiple values for one action.");
            }
        }
View Full Code Here

Examples of org.drools.guvnor.client.decisiontable.analysis.action.ActionDetectorKey

        if (overlappingCondition) {
            boolean multipleValuesForOneAction = false;
            boolean duplicatedAction = false;

            for (Map.Entry<ActionDetectorKey, ActionDetector> entry : actionDetectorMap.entrySet()) {
                ActionDetectorKey key = entry.getKey();
                ActionDetector actionDetector = entry.getValue();
                ActionDetector otherActionDetector = otherRowDetector.getActionDetector(key);
                // If 1 field is in both
                if (otherActionDetector != null) {
                    ActionDetector mergedActionDetector = actionDetector.merge(otherActionDetector);
View Full Code Here

Examples of org.drools.workbench.screens.guided.dtable.client.widget.analysis.action.ActionDetectorKey

    }

    private ActionDetector buildActionDetector( GuidedDecisionTable52 model,
                                                ActionCol52 actionCol,
                                                DTCellValue52 realCellValue ) {
        ActionDetectorKey key;
        if ( actionCol instanceof ActionSetFieldCol52 ) {
            key = new SetFieldColActionDetectorKey( (ActionSetFieldCol52) actionCol );
        } else if ( actionCol instanceof ActionInsertFactCol52 ) {
            key = new InsertFactActionDetectorKey( (ActionInsertFactCol52) actionCol );
        } else {
View Full Code Here

Examples of org.drools.workbench.screens.guided.dtable.client.widget.analysis.action.ActionDetectorKey

    }

    private ActionDetector buildActionDetector( GuidedDecisionTable52 model,
                                                ActionCol52 actionCol,
                                                DTCellValue52 realCellValue ) {
        ActionDetectorKey key;
        if ( actionCol instanceof ActionSetFieldCol52 ) {
            key = new SetFieldColActionDetectorKey( (ActionSetFieldCol52) actionCol );
        } else if ( actionCol instanceof ActionInsertFactCol52 ) {
            key = new InsertFactActionDetectorKey( (ActionInsertFactCol52) actionCol );
        } else {
View Full Code Here

Examples of org.drools.workbench.screens.guided.dtable.client.widget.analysis.action.ActionDetectorKey

    public ActionDetector getActionDetector( ActionDetectorKey key ) {
        return actionDetectorMap.get( key );
    }

    public void putOrMergeActionDetector( ActionDetector actionDetector ) {
        ActionDetectorKey key = actionDetector.getKey();
        ActionDetector originalActionDetector = actionDetectorMap.get( key );
        ActionDetector mergedActionDetector;
        if ( originalActionDetector == null ) {
            mergedActionDetector = actionDetector;
        } else {
View Full Code Here

Examples of org.drools.workbench.screens.guided.dtable.client.widget.analysis.action.ActionDetectorKey

        }
    }

    private void detectMultipleValuesForOneAction( Analysis analysis ) {
        for ( Map.Entry<ActionDetectorKey, ActionDetector> entry : actionDetectorMap.entrySet() ) {
            ActionDetectorKey key = entry.getKey();
            ActionDetector actionDetector = entry.getValue();
            if ( actionDetector.isMultipleValuesForOneAction() ) {
                analysis.addMultipleValuesForOneAction( "Multiple values for one action." );
            }
        }
View Full Code Here

Examples of org.drools.workbench.screens.guided.dtable.client.widget.analysis.action.ActionDetectorKey

        if ( overlappingCondition ) {
            boolean multipleValuesForOneAction = false;
            boolean duplicatedAction = false;

            for ( Map.Entry<ActionDetectorKey, ActionDetector> entry : actionDetectorMap.entrySet() ) {
                ActionDetectorKey key = entry.getKey();
                ActionDetector actionDetector = entry.getValue();
                ActionDetector otherActionDetector = otherRowDetector.getActionDetector( key );
                // If 1 field is in both
                if ( otherActionDetector != null ) {
                    ActionDetector mergedActionDetector = actionDetector.merge( otherActionDetector );
View Full Code Here

Examples of org.drools.workbench.screens.guided.dtable.client.widget.analysis.action.ActionDetectorKey

    }

    private ActionDetector buildActionDetector( GuidedDecisionTable52 model,
                                                ActionCol52 actionCol,
                                                DTCellValue52 realCellValue ) {
        ActionDetectorKey key;
        if ( actionCol instanceof ActionSetFieldCol52 ) {
            key = new SetFieldColActionDetectorKey( (ActionSetFieldCol52) actionCol );
        } else if ( actionCol instanceof ActionInsertFactCol52 ) {
            key = new InsertFactActionDetectorKey( (ActionInsertFactCol52) actionCol );
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.