protected BRLRuleModel getRuleModel( BRLColumn<IAction, BRLActionVariableColumn> column ) { BRLRuleModel ruleModel = new BRLRuleModel( model ); List<IAction> definition = column.getDefinition(); ruleModel.rhs = definition.toArray( new IAction[ definition.size() ] ); return ruleModel; }
public BRLRuleModel getRuleModel( BRLColumn<IPattern, BRLConditionVariableColumn> column ) { BRLRuleModel ruleModel = new BRLRuleModel( model ); List<IPattern> definition = column.getDefinition(); ruleModel.lhs = definition.toArray( new IPattern[ definition.size() ] ); return ruleModel; }
public BRLRuleModel getRuleModel( BRLColumn<IPattern, BRLConditionVariableColumn> column ) { BRLRuleModel ruleModel = new BRLRuleModel( model ); List<IPattern> definition = column.getDefinition(); ruleModel.lhs = definition.toArray( new IPattern[ definition.size() ] ); return ruleModel; }
protected BRLRuleModel getRuleModel( BRLColumn<IAction, BRLActionVariableColumn> column ) { BRLRuleModel ruleModel = new BRLRuleModel( model ); List<IAction> definition = column.getDefinition(); ruleModel.rhs = definition.toArray( new IAction[ definition.size() ] ); return ruleModel; }
private DecoratedGridCellValueAdaptor<? extends Comparable<?>> derieveCellFromAction( ActionRetractFactCol52 col ) { //Drop down of possible patterns PopupBoundPatternDropDownEditCell pudd = new PopupBoundPatternDropDownEditCell( eventBus, isReadOnly ); BRLRuleModel rm = new BRLRuleModel( model ); pudd.setFactBindings( rm.getLHSBoundFacts() ); return new DecoratedGridCellValueAdaptor<String>( pudd, eventBus ); }
this.oracle = oracle; this.identity = identity; this.rm = new BRLRuleModel( model ); this.utils = new GuidedDecisionTableUtils( oracle, model );
@Test public void testOnlyDecisionTableColumns() { GuidedDecisionTable52 dt = new GuidedDecisionTable52(); Pattern52 p1 = new Pattern52(); p1.setFactType( "Driver" ); p1.setBoundName( "$p1" ); ConditionCol52 c1 = new ConditionCol52(); c1.setFactField( "name" ); c1.setConstraintValueType( BaseSingleFieldConstraint.TYPE_LITERAL ); c1.setBinding( "$c1" ); p1.getChildColumns().add( c1 ); dt.getConditions().add( p1 ); ActionInsertFactCol52 ins = new ActionInsertFactCol52(); ins.setBoundName( "$ins" ); ins.setFactField( "rating" ); ins.setFactType( "Person" ); ins.setType( DataType.TYPE_STRING ); dt.getActionCols().add( ins ); BRLRuleModel model = new BRLRuleModel( dt ); assertNotNull( model.getAllVariables() ); assertEquals( 3, model.getAllVariables().size() ); assertTrue( model.getAllVariables().contains( "$p1" ) ); assertTrue( model.getAllVariables().contains( "$c1" ) ); assertTrue( model.getAllVariables().contains( "$ins" ) ); }
BRLRuleModel rm = new BRLRuleModel( model ); BoundFactsChangedEvent pce = new BoundFactsChangedEvent( rm.getLHSBoundFacts() ); eventBus.fireEvent( pce );
dt.getActionCols().add( ins ); BRLRuleModel model = new BRLRuleModel( dt );
dt.getActionCols().add( ins ); BRLRuleModel model = new BRLRuleModel( dt );
dt.getActionCols().add( ins ); BRLRuleModel model = new BRLRuleModel( dt );
dt.getActionCols().add( brlAction ); BRLRuleModel model = new BRLRuleModel( dt );
BRLRuleModel model = new BRLRuleModel( dt ); FactPattern fp = new FactPattern( "Driver" ); fp.setBoundName( "$brl1" );
final boolean isNew, final boolean isReadOnly ) { this.rm = new BRLRuleModel( model ); this.editingCol = cloneActionRetractColumn( col ); this.model = model;
BRLRuleModel model = new BRLRuleModel( dt ); FactPattern fp2 = new FactPattern( "Driver" ); fp2.setBoundName( "$brl1" );
BRLRuleModel model = new BRLRuleModel( dt ); ActionInsertFact aif2 = new ActionInsertFact( "Person" ); aif2.setBoundName( "$aif" );
dt.getActionCols().add( brlAction ); BRLRuleModel model = new BRLRuleModel( dt );
BRLRuleModel model = new BRLRuleModel( dt ); ActionInsertFact aif = new ActionInsertFact( "Person" ); aif.setBoundName( "$aif" );
this.identity = identity; this.workItemDefinitions = workItemDefinitions; this.rm = new BRLRuleModel( model ); this.isReadOnly = isReadOnly;
final boolean isNew, final boolean isReadOnly ) { this.validator = new BRLRuleModel( model ); this.editingCol = cloneActionInsertColumn( col ); this.model = model;