Package org.drools.workbench.models.guided.dtable.shared.model

Examples of org.drools.workbench.models.guided.dtable.shared.model.AttributeCol52


    @Test
    public void testInterpolate() {
        GuidedDecisionTable52 dt = new GuidedDecisionTable52();
        dt.setTableName( "michael" );

        AttributeCol52 attr = new AttributeCol52();
        attr.setAttribute( "salience" );
        attr.setDefaultValue( new DTCellValue52( "66" ) );
        dt.getAttributeCols().add( attr );

        Pattern52 p1 = new Pattern52();
        p1.setBoundName( "f1" );
        p1.setFactType( "Driver" );
View Full Code Here


    public void testLimitedEntryAttributes() {
        GuidedDecisionTable52 dt = new GuidedDecisionTable52();
        dt.setTableFormat( GuidedDecisionTable52.TableFormat.LIMITED_ENTRY );
        dt.setTableName( "limited-entry" );

        AttributeCol52 attr = new AttributeCol52();
        attr.setAttribute( "salience" );
        dt.getAttributeCols().add( attr );

        dt.setData( DataUtilities.makeDataLists( new String[][]{
                new String[]{ "1", "desc", "100" },
                new String[]{ "2", "desc", "200" }
View Full Code Here

               ActionType.Code.AUTOFOCUS,
               conversionResult );
    }

    public void populateDecisionTable( final GuidedDecisionTable52 dtable ) {
        final AttributeCol52 column = new AttributeCol52();
        column.setAttribute( GuidedDecisionTable52.AUTO_FOCUS_ATTR );
        dtable.getAttributeCols().add( column );
        addColumnData( dtable,
                       column );
    }
View Full Code Here

               ActionType.Code.RULEFLOWGROUP,
               conversionResult );
    }

    public void populateDecisionTable( final GuidedDecisionTable52 dtable ) {
        final AttributeCol52 column = new AttributeCol52();
        column.setAttribute( GuidedDecisionTable52.RULEFLOW_GROUP_ATTR );
        dtable.getAttributeCols().add( column );
        addColumnData( dtable,
                       column );
    }
View Full Code Here

               ActionType.Code.TIMER,
               conversionResult );
    }

    public void populateDecisionTable( final GuidedDecisionTable52 dtable ) {
        final AttributeCol52 column = new AttributeCol52();
        column.setAttribute( GuidedDecisionTable52.TIMER_ATTR );
        dtable.getAttributeCols().add( column );
        addColumnData( dtable,
                       column );
    }
View Full Code Here

               ActionType.Code.DURATION,
               conversionResult );
    }

    public void populateDecisionTable( final GuidedDecisionTable52 dtable ) {
        final AttributeCol52 column = new AttributeCol52();
        column.setAttribute( GuidedDecisionTable52.DURATION_ATTR );
        dtable.getAttributeCols().add( column );
        addColumnData( dtable,
                       column );
    }
View Full Code Here

               ActionType.Code.NOLOOP,
               conversionResult );
    }

    public void populateDecisionTable( final GuidedDecisionTable52 dtable ) {
        final AttributeCol52 column = new AttributeCol52();
        column.setAttribute( GuidedDecisionTable52.NO_LOOP_ATTR );
        dtable.getAttributeCols().add( column );
        addColumnData( dtable,
                       column );
    }
View Full Code Here

               conversionResult );
        this.isSequential = isSequential;
    }

    public void populateDecisionTable( final GuidedDecisionTable52 dtable ) {
        final AttributeCol52 column = new AttributeCol52();
        column.setAttribute( GuidedDecisionTable52.SALIENCE_ATTR );

        //If sequential set column to use reverse row number
        if ( isSequential ) {
            column.setUseRowNumber( true );
            column.setReverseOrder( true );
            final int maxRow = this.values.size();
            for ( int iRow = 0; iRow < maxRow; iRow++ ) {
                final DTCellValue52 dcv = this.values.get( iRow );
                dcv.setNumericValue( new Integer( maxRow - iRow ) );
            }
View Full Code Here

               ActionType.Code.ACTIVATIONGROUP,
               conversionResult );
    }

    public void populateDecisionTable( final GuidedDecisionTable52 dtable ) {
        final AttributeCol52 column = new AttributeCol52();
        column.setAttribute( GuidedDecisionTable52.ACTIVATION_GROUP_ATTR );
        dtable.getAttributeCols().add( column );
        addColumnData( dtable,
                       column );
    }
View Full Code Here

               ActionType.Code.LOCKONACTIVE,
               conversionResult );
    }

    public void populateDecisionTable( final GuidedDecisionTable52 dtable ) {
        final AttributeCol52 column = new AttributeCol52();
        column.setAttribute( GuidedDecisionTable52.LOCK_ON_ACTIVE_ATTR );
        dtable.getAttributeCols().add( column );
        addColumnData( dtable,
                       column );
    }
View Full Code Here

TOP

Related Classes of org.drools.workbench.models.guided.dtable.shared.model.AttributeCol52

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.