Examples of evaluate()


Examples of org.apache.imperius.spl.core.Expression.evaluate()

            assertTrue(((Boolean) expression2.evaluate()).booleanValue());
            assertTrue(((Boolean) expression3.evaluate()).booleanValue());
            assertFalse(
                ((Boolean) expression4.evaluate()).booleanValue());
            assertTrue(((Boolean) expression5.evaluate()).booleanValue());
            assertTrue(((Boolean) expression6.evaluate()).booleanValue());
        } catch (SPLException e) {  
          logger.severe("Received evaluation exception " + e.getMessage());
            fail("Received evaluation exception " + e.getMessage());
        } catch (Exception e) {  
          logger.severe("Received evaluation exception " + e.getMessage());

Examples of org.apache.imperius.spl.parser.compiler.IdentPrimaryTuple.evaluate()

                while (idIter.hasNext())
                {
                    IdentPrimaryTuple ipt = (IdentPrimaryTuple) idIter.next();
                    if (i++ == 0)
                    {
                        intermediateObject = ipt.evaluate();
                    }
                    else
                    {
                        intermediateObject = ipt.evaluate(intermediateObject);
                    }

Examples of org.apache.imperius.spl.parser.expression.primary.BasicCollectionExpression.evaluate()

      Expression e1=new BasicCollectionExpression(v,t);
      assertTrue(e1.getType().getType()== TypeConstants.intType);
      assertTrue(e1.isArray());
     
     
      List resultList=(List)e1.evaluate();
      for(int i=0;i<resultList.size();i++)
      {
        assertTrue(((Integer)resultList.get(i)).intValue()==c1);
      }
     

Examples of org.apache.imperius.spl.parser.expressions.impl.Abs.evaluate()

                    == 0);
            assertTrue(
                (Math.abs(fn1) - ((Number) e4.evaluate()).floatValue())
                    == 0);
            assertTrue(
                (Math.abs(dn1) - ((Number) e5.evaluate()).doubleValue())
                    == 0);
/*
      assertSame((new Short(sn1)).getClass(), (e1.evaluate()).getClass());
      assertSame((new Integer(in1)).getClass(), (e2.evaluate()).getClass());
      assertSame((new Long(ln1)).getClass(), (e3.evaluate()).getClass());

Examples of org.apache.imperius.spl.parser.expressions.impl.Addition.evaluate()

                ((fn2 + fn3)
                    - ((Number) eps4.evaluate()).floatValue())
                    == 0);
            assertTrue(
                ((dn2 + dn3)
                    - ((Number) eps5.evaluate()).doubleValue())
                    == 0);
/*
            assertSame(
                (eps1.evaluate()).getClass(),
                (new Integer(sn1)).getClass());

Examples of org.apache.imperius.spl.parser.expressions.impl.AllInCollection.evaluate()


            assertTrue(((Boolean)es1.evaluate()).booleanValue());
            assertTrue(((Boolean)es2.evaluate()).booleanValue());
            assertTrue(((Boolean)es3.evaluate()).booleanValue());
            assertTrue(((Boolean)es4.evaluate()).booleanValue());
           
           
           
            propertySensor1 = new BooleanConstant(true);
          propertySensor2 = new BooleanConstant(true);

Examples of org.apache.imperius.spl.parser.expressions.impl.AnyInCollection.evaluate()


            assertTrue(((Boolean)es1.evaluate()).booleanValue());
            assertTrue(((Boolean)es2.evaluate()).booleanValue());
            assertTrue(((Boolean)es3.evaluate()).booleanValue());
            assertTrue(((Boolean)es4.evaluate()).booleanValue());
           
           
           
            propertySensor1 = new BooleanConstant(true);
          propertySensor2 = new BooleanConstant(true);

Examples of org.apache.imperius.spl.parser.expressions.impl.ApplyToCollection.evaluate()

              //System.out.println(((Number)resultarr3.get(i)).intValue());
              assertTrue(((Number)resultarr3.get(i)).intValue()==16);

            }
           
            List resultarr4=(List)es4.evaluate();
            for(int i=0;i<resultarr4.size();i++){
              //System.out.println(((Number)resultarr4.get(i)).intValue());
              assertTrue(((Number)resultarr4.get(i)).intValue()==4);

            }

Examples of org.apache.imperius.spl.parser.expressions.impl.AvrgInCollection.evaluate()

            Expression collection = new BasicCollectionExpression(vbytes,null);
           
            v.add(collection);
            Expression es1 = new AvrgInCollection(v,true);
            v.clear();
            double n=((Number)es1.evaluate()).doubleValue();
           //System.out.println(n);
            assertTrue(n>9.94 && n<9.95);

           
        } catch (SPLException e) {

Examples of org.apache.imperius.spl.parser.expressions.impl.Ceiling.evaluate()

            == 0);
      assertTrue(
        (Math.ceil(fn1) - ((Number) e4.evaluate()).intValue())
          == 0);
      assertTrue(
        (Math.ceil(dn1) - ((Number) e5.evaluate()).longValue())
          == 0);
/*
      assertSame((new Double(sn1)).getClass(), (e1.evaluate()).getClass());
      assertSame((new Double(in1)).getClass(), (e2.evaluate()).getClass());
      assertSame((new Double(ln1)).getClass(), (e3.evaluate()).getClass());
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.