40224023402440254026402740284029403040314032
assertEquals( 0, fp.getNumberOfConstraints() ); assertEquals( 1, m.rhs.length ); IAction a = m.rhs[ 0 ]; assertTrue( a instanceof ActionUpdateField ); ActionUpdateField ap = (ActionUpdateField) a; assertEquals( "$p", ap.getVariable() );
40854086408740884089409040914092409340944095
assertEquals( 0, fp.getNumberOfConstraints() ); assertEquals( 1, m.rhs.length ); IAction a = m.rhs[ 0 ]; assertTrue( a instanceof ActionUpdateField ); ActionUpdateField ap = (ActionUpdateField) a; assertEquals( "$sc", ap.getVariable() );
41454146414741484149415041514152415341544155
400401402403404405406407408409410
actions.add( action ); } } model.rhs = new IAction[ actions.size() ]; for ( int i = 0; i < actions.size(); i++ ) { final IAction action = actions.get( i ); if ( action instanceof ActionSetFieldWrapper ) { model.rhs[ i ] = ( (ActionSetFieldWrapper) action ).getAction(); } else { model.rhs[ i ] = action; }
6566676869707172737475
factTypes.addAll( visit( pattern ) ); } } if ( model.rhs != null ) { for ( int i = 0; i < model.rhs.length; i++ ) { IAction action = model.rhs[ i ]; factTypes.addAll( visit( action ) ); } } //Convert Fact Types into Fully Qualified Class Names
34663467346834693470347134723473347434753476
assertEquals( "$f", sfp.getFieldBinding() ); assertEquals( 1, m.rhs.length ); IAction a = m.rhs[ 0 ]; assertTrue( a instanceof ActionInsertFact ); ActionInsertFact ap = (ActionInsertFact) a; assertEquals( "Person", ap.getFactType() );
35403541354235433544354535463547354835493550
assertEquals( BaseSingleFieldConstraint.TYPE_LITERAL, sfp.getConstraintValueType() ); assertEquals( 1, m.rhs.length ); IAction a = m.rhs[ 0 ]; assertTrue( a instanceof ActionInsertFact ); ActionInsertFact ap = (ActionInsertFact) a; assertEquals( "Person", ap.getFactType() );
36193620362136223623362436253626362736283629
assertEquals( "$f", sfp.getFieldBinding() ); assertEquals( 1, m.rhs.length ); IAction a = m.rhs[ 0 ]; assertTrue( a instanceof ActionUpdateField ); ActionUpdateField ap = (ActionUpdateField) a; assertEquals( "$p", ap.getVariable() );
36773678367936803681368236833684368536863687
37543755375637573758375937603761376237633764