40314032403340344035403640374038403940404041
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() );
40914092409340944095409640974098409941004101
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
34693470347134723473347434753476347734783479
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() );
35433544354535463547354835493550355135523553
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() );
36223623362436253626362736283629363036313632
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() );
36803681368236833684368536863687368836893690
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() );
37573758375937603761376237633764376537663767
38323833383438353836383738383839384038413842