Package org.apache.imperius.spl.parser.expressions.impl

Examples of org.apache.imperius.spl.parser.expressions.impl.FloatConstant


            fail("Received expression exception " + e.getMessage());
        }
    }
   
    public void testSum() {
      propertySensor1 = new FloatConstant((float)1.11);
      propertySensor2 = new FloatConstant((float)2.22);
      propertySensor3 = new FloatConstant((float)3.33);
      propertySensor4 = new FloatConstant((float)4.44);
      propertySensor5 = new FloatConstant((float)-5.55);
      propertySensor6 = new FloatConstant((float)-6.66);
      propertySensor7 = new FloatConstant((float)-7.77);
      propertySensor8 = new FloatConstant((float)88.44);
     
     
     
        try {
            Vector v = new Vector();
View Full Code Here


            fail("Received expression exception " + e.getMessage());
        }
    }
   
    public void testInCollection() {
      propertySensor1 = new FloatConstant((float)1.11);
      propertySensor2 = new FloatConstant((float)2.22);
      propertySensor3 = new FloatConstant((float)3.33);
      propertySensor4 = new FloatConstant((float)4.44);
      propertySensor5 = new FloatConstant((float)-5.55);
      propertySensor6 = new FloatConstant((float)-6.66);
      propertySensor7 = new FloatConstant((float)-7.77);
      propertySensor8 = new FloatConstant((float)88.44);
     
     
     
        try {
            Vector v = new Vector();
View Full Code Here

            fail("Received expression exception " + e.getMessage());
        }
    }
   
    public void testSubCollection() {
      propertySensor1 = new FloatConstant((float)1.11);
      propertySensor2 = new FloatConstant((float)2.22);
      propertySensor3 = new FloatConstant((float)3.33);
      propertySensor4 = new FloatConstant((float)4.44);
      propertySensor5 = new FloatConstant((float)-5.55);
      propertySensor6 = new FloatConstant((float)-6.66);
      propertySensor7 = new FloatConstant((float)-7.77);
      propertySensor8 = new FloatConstant((float)88.44);
     
     
     
        try {
            Vector v = new Vector();
View Full Code Here

            fail("Received expression exception " + e.getMessage());
        }
    }
   
    public void testUnion() {
      propertySensor1 = new FloatConstant((float)1.11);
      propertySensor2 = new FloatConstant((float)2.22);
      propertySensor3 = new FloatConstant((float)3.33);
      propertySensor4 = new FloatConstant((float)4.44);
      propertySensor5 = new FloatConstant((float)-5.55);
      propertySensor6 = new FloatConstant((float)-6.66);
      propertySensor7 = new FloatConstant((float)-7.77);
      propertySensor8 = new FloatConstant((float)88.44);
     
     
     
        try {
            Vector v = new Vector();
View Full Code Here

            fail("Received expression exception " + e.getMessage());
        }
    }
   
    public void testCollectionSize() {
      propertySensor1 = new FloatConstant((float)1.11);
      propertySensor2 = new FloatConstant((float)2.22);
      propertySensor3 = new FloatConstant((float)3.33);
      propertySensor4 = new FloatConstant((float)4.44);
      propertySensor5 = new FloatConstant((float)-5.55);
      propertySensor6 = new FloatConstant((float)-6.66);
      propertySensor7 = new FloatConstant((float)-7.77);
      propertySensor8 = new FloatConstant((float)88.44);
     
     
     
        try {
            Vector v = new Vector();
View Full Code Here

            fail("Received expression exception " + e.getMessage());
        }
    }
   
    public void testMedianInCollection() {
      propertySensor1 = new FloatConstant((float)6);
      propertySensor2 = new FloatConstant((float)9.7);
      propertySensor3 = new FloatConstant((float)14.8);
      propertySensor4 = new FloatConstant((float)22.4);
      propertySensor5 = new FloatConstant((float)-9.8);
     
     
     
        try {
            Vector v = new Vector();
View Full Code Here

            fail("Received expression exception " + e.getMessage());
        }
    }
   
    public void testSdInCollection() {
      propertySensor1 = new FloatConstant((float)2);
      propertySensor2 = new FloatConstant((float)4);
      propertySensor3 = new FloatConstant((float)1);
      propertySensor4 = new FloatConstant((float)6);
      propertySensor5 = new FloatConstant((float)7);
     
     
     
        try {
            Vector v = new Vector();
View Full Code Here

 
  public void testFloatConstant() {
    Float s1 = new Float(1.23);
   
    //HashMap map = new HashMap();
    propertySensor1=new FloatConstant(s1.floatValue());
   
   
    //SensorLookup lookup = new SensorLookupImpl(map);

    try {
View Full Code Here

    case TypeConstants.doubleType:
      returnExpr = new DoubleConstant(Double.valueOf(val).doubleValue());
      break;

    case TypeConstants.floatType:
      returnExpr = new FloatConstant(Float.valueOf(val).floatValue());
      break;

    case TypeConstants.intType:
      returnExpr = new IntegerConstant(Integer.valueOf(val).intValue());
      break;
View Full Code Here

        String s2 = "\""+fn2.toString()+"\"";

        //HashMap map = new HashMap();
        propertySensor1=new StringConstant(s1.toString());
        propertySensor2=new StringConstant(s2.toString());
        propertySensor3=new FloatConstant(fn1.floatValue());
        propertySensor4=new FloatConstant(fn2.floatValue());
        //SensorLookup lookup = new SensorLookupImpl(map);

        try {
            Vector v = new Vector();
            v.add(new StringConstant(s1));
            Expression es1 = new ToREAL32(v,true);

            v.clear();
            v.add(new StringConstant(s2));
            Expression es2 = new ToREAL32(v,true);

            v.clear();
            v.add(new FloatConstant(fn1.floatValue()));
            Expression efn1 = new ToREAL32(v,true);

            v.clear();
            v.add(new FloatConstant(fn2.floatValue()));
            Expression efn2 = new ToREAL32(v,true);

            v.clear();
            v.add(propertySensor1);
            Expression eps1 = new ToREAL32(v,true);
View Full Code Here

TOP

Related Classes of org.apache.imperius.spl.parser.expressions.impl.FloatConstant

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.