Examples of AttributeCol52


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

                     rm );

        assertSame( orig,
                    rm.attributes );

        AttributeCol52 col1 = new AttributeCol52();
        col1.setAttribute( "salience" );
        AttributeCol52 col2 = new AttributeCol52();
        col2.setAttribute( "agenda-group" );
        attributeCols.add( col1 );
        attributeCols.add( col2 );
        allColumns.addAll( attributeCols );

        p.doAttribs( allColumns,
View Full Code Here

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

    @Test
    public void testInOperator() {
        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

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

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

    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

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

        populateDataModelOracle( mock( Path.class ),
                                 model,
                                 oracle,
                                 dataModel );

        at1 = new AttributeCol52();
        at1.setAttribute( "salience" );
        at2 = new AttributeCol52();
        at2.setAttribute( "enabled" );

        model.getAttributeCols().add( at1 );
        model.getAttributeCols().add( at2 );
View Full Code Here

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

        assertEquals( "two",
                      r[ 1 ] );
        assertEquals( "three",
                      r[ 2 ] );

        AttributeCol52 at = new AttributeCol52();
        at.setAttribute( "no-loop" );
        model.getAttributeCols().add( at );

        r = utils.getValueList( at );
        assertEquals( 2,
                      r.length );
        assertEquals( "true",
                      r[ 0 ] );
        assertEquals( "false",
                      r[ 1 ] );

        at.setAttribute( "enabled" );
        assertEquals( 2,
                      utils.getValueList( at ).length );

        at.setAttribute( "salience" );
        assertEquals( 0,
                      utils.getValueList( at ).length );

    }
View Full Code Here

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

                                 oracle,
                                 dataModel );
        final GuidedDecisionTableUtils utils = new GuidedDecisionTableUtils( model,
                                                                             oracle );

        final AttributeCol52 at = new AttributeCol52();
        at.setAttribute( "salience" );
        final AttributeCol52 at_ = new AttributeCol52();
        at_.setAttribute( "enabled" );

        model.getAttributeCols().add( at );
        model.getAttributeCols().add( at_ );

        final ConditionCol52 c1 = new ConditionCol52();
View Full Code Here

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

                                 oracle,
                                 dataModel );
        final GuidedDecisionTableUtils utils = new GuidedDecisionTableUtils( model,
                                                                             oracle );

        final AttributeCol52 salienceAttribute = new AttributeCol52();
        salienceAttribute.setAttribute( "salience" );
        final AttributeCol52 enabledAttribute = new AttributeCol52();
        enabledAttribute.setAttribute( "enabled" );

        model.getAttributeCols().add( salienceAttribute );
        model.getAttributeCols().add( enabledAttribute );

        final Pattern52 p1 = new Pattern52();
View Full Code Here

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

        final DescriptionCol52 dc = new DescriptionCol52();

        final MetadataCol52 mdc = new MetadataCol52();
        mdc.setMetadata( "cheese" );

        final AttributeCol52 ac = new AttributeCol52();
        ac.setAttribute( "salience" );

        final ActionSetFieldCol52 asfc = new ActionSetFieldCol52();
        asfc.setBoundName( "d1" );
        asfc.setFactField( "age" );
View Full Code Here

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

        }

    }

    private AttributeCol52 makeNewColumn( AttributeCol c ) {
        AttributeCol52 nc = new AttributeCol52();
        nc.setAttribute( c.attr );
        nc.setDefaultValue( new DTCellValue52( c.defaultValue ) );
        nc.setHideColumn( c.hideColumn );
        nc.setReverseOrder( c.reverseOrder );
        nc.setUseRowNumber( c.useRowNumber );
        nc.setWidth( c.width );
        return nc;
    }
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.