Package com.clarkparsia.pellet.rules.builtins

Examples of com.clarkparsia.pellet.rules.builtins.NumericPromotion


    promoter.accept( new EqualityAssertion( results ) );
  }
 
  @Before
  public void setUp() {
    promoter = new NumericPromotion();
   
  }
View Full Code Here


    promoter.accept( new EqualityAssertion( results ) );
  }
 
  @Before
  public void setUp() {
    promoter = new NumericPromotion();
   
  }
View Full Code Here

  private boolean notEqual(Literal l1, Literal l2) {
    return ComparisonTesters.notEqual.test( new Literal[] { l1, l2 } );
  }
 
  private void numeric( NumericFunction f, Number expected, Number... args ) {
    NumericPromotion promoter = new NumericPromotion();
    promoter.promote( args );
   
    FunctionApplicationVisitor visitor = new FunctionApplicationVisitor( f );
    promoter.accept( visitor );
    Number result = visitor.getResult();
   
    if( expected == null ) {
      assertNull( result );
    }
View Full Code Here

TOP

Related Classes of com.clarkparsia.pellet.rules.builtins.NumericPromotion

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.