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

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


        double dn1 = 2.3, dn2 = -100.4;

        //HashMap map = new HashMap();
    propertySensor1=new ShortConstant(sn1);
    propertySensor2=new ShortConstant(sn2);
    propertySensor3=new IntegerConstant(in1);
    propertySensor4=new IntegerConstant(in2);
    propertySensor5=new LongConstant(ln1);
    propertySensor6=new LongConstant(ln2);
    propertySensor7=new FloatConstant(fn1);
    propertySensor8=new FloatConstant(fn2);
    propertySensor9=new DoubleConstant(dn1);
    propertySensor10=new DoubleConstant(dn2);

   
        //SensorLookup lookup = new SensorLookupImpl(map);

        try {
            Vector v = new Vector();
            v.add(new ShortConstant(sn1));
            v.add(new ShortConstant(sn2));
            Expression es = new Division(v,true);

            v.clear();
            v.add(new IntegerConstant(in1));
            v.add(new IntegerConstant(in2));
            Expression ei = new Division(v,true);

            v.clear();
            v.add(new LongConstant(ln1));
            v.add(new LongConstant(ln2));
            Expression el = new Division(v,true);

            v.clear();
            v.add(new FloatConstant(fn1));
            v.add(new FloatConstant(fn2));
            Expression ef = new Division(v,true);

            v.clear();
            v.add(new DoubleConstant(dn1));
            v.add(new DoubleConstant(dn2));
            Expression ed = new Division(v,true);

            v.clear();
            v.add(new ShortConstant(sn1));
            v.add(new IntegerConstant(in1));
            Expression emix1 = new Division(v,true);

            v.clear();
            v.add(new ShortConstant(sn1));
            v.add(new LongConstant(ln1));
            Expression emix2 = new Division(v,true);

            v.clear();
            v.add(new ShortConstant(sn1));
            v.add(new FloatConstant(fn1));
            Expression emix3 = new Division(v,true);

            v.clear();
            v.add(new ShortConstant(sn1));
            v.add(new DoubleConstant(dn1));
            Expression emix4 = new Division(v,true);

            v.clear();
            v.add(new IntegerConstant(in1));
            v.add(new LongConstant(ln1));
            Expression emix5 = new Division(v,true);

            v.clear();
            v.add(new IntegerConstant(in1));
            v.add(new FloatConstant(fn1));
            Expression emix6 = new Division(v,true);

            v.clear();
            v.add(new IntegerConstant(in1));
            v.add(new DoubleConstant(dn1));
            Expression emix7 = new Division(v,true);

            v.clear();
            v.add(new LongConstant(ln1));
View Full Code Here


            v.add(new ShortConstant(sn1));
            v.add(new ShortConstant(sn2));
            Expression es = new Mod(v,true);

            v.clear();
            v.add(new IntegerConstant(in1));
            v.add(new IntegerConstant(in2));
            Expression ei = new Mod(v,true);

            v.clear();
            v.add(new LongConstant(ln1));
            v.add(new LongConstant(ln2));
View Full Code Here

        double dn1 = -100.4, dn2 = 3.1415926;

        //HashMap map = new HashMap();
    propertySensor1=new ShortConstant(sn1);
    propertySensor2=new ShortConstant(sn2);
    propertySensor3=new IntegerConstant(in1);
    propertySensor4=new IntegerConstant(in2);
    propertySensor5=new LongConstant(ln1);
    propertySensor6=new LongConstant(ln2);
    propertySensor7=new FloatConstant(fn1);
    propertySensor8=new FloatConstant(fn2);
    propertySensor9=new DoubleConstant(dn1);
    propertySensor10=new DoubleConstant(dn2);

   
        //SensorLookup lookup = new SensorLookupImpl(map);

        try {
            Vector v = new Vector();
            /*v.add(new ShortConstant(sn1));
            v.add(new ShortConstant(sn2));
            v.add(new IntegerConstant(in1));
            v.add(new IntegerConstant(in2));
            v.add(new LongConstant(ln1));
            v.add(new LongConstant(ln2));
            v.add(new FloatConstant(fn1));
            v.add(new FloatConstant(fn2));
            v.add(new DoubleConstant(dn1));
            v.add(new DoubleConstant(dn2));
            Expression e = new Max(v,true);*/

            v.clear();
            v.add(new ShortConstant(sn2));
            v.add(new IntegerConstant(in1));
      Expression emix1 = new Max(v,true);
      v.clear();
      v.add(new IntegerConstant(in2));
            v.add(new LongConstant(ln1));
      Expression emix2 = new Max(v,true);
      v.clear();
      v.add(new LongConstant(ln2));
            v.add(new FloatConstant(fn1));
View Full Code Here

        double dn1 = -100.4, dn2 = 3.1415926;

        //HashMap map = new HashMap();
    propertySensor1=new ShortConstant(sn1);
    propertySensor2=new ShortConstant(sn2);
    propertySensor3=new IntegerConstant(in1);
    propertySensor4=new IntegerConstant(in2);
    propertySensor5=new LongConstant(ln1);
    propertySensor6=new LongConstant(ln2);
    propertySensor7=new FloatConstant(fn1);
    propertySensor8=new FloatConstant(fn2);
    propertySensor9=new DoubleConstant(dn1);
    propertySensor10=new DoubleConstant(dn2);

        //SensorLookup lookup = new SensorLookupImpl(map);

        try {
            Vector v = new Vector();
           
            /*v.add(new ShortConstant(sn1));
            v.add(new ShortConstant(sn2));
            v.add(new IntegerConstant(in1));
            v.add(new IntegerConstant(in2));
            v.add(new LongConstant(ln1));
            v.add(new LongConstant(ln2));
            v.add(new FloatConstant(fn1));
            v.add(new FloatConstant(fn2));
            v.add(new DoubleConstant(dn1));
            v.add(new DoubleConstant(dn2));
            Expression e = new Min(v,true);*/
           
            v.clear();
            v.add(new ShortConstant(sn2));
            v.add(new IntegerConstant(in1));
      Expression emix1 = new Min(v,true);
      v.clear();
      v.add(new IntegerConstant(in2));
            v.add(new LongConstant(ln1));
      Expression emix2 = new Min(v,true);
      v.clear();
      v.add(new LongConstant(ln2));
            v.add(new FloatConstant(fn1));
View Full Code Here

        float fn1 = 505.1F;
        double dn1 = 100.4;

        //HashMap map = new HashMap();
    propertySensor1=new ShortConstant(sn1);
    propertySensor2=new IntegerConstant(in1);
    propertySensor3=new LongConstant(ln1);
    propertySensor4=new FloatConstant(fn1);
    propertySensor5=new DoubleConstant(dn1);
        //SensorLookup lookup = new SensorLookupImpl(map);

        try {
            Vector v = new Vector();
            v.add(new ShortConstant(sn1));
            Expression e1 = new Ln(v,true);

            v.clear();
            v.add(new IntegerConstant(in1));
            Expression e2 = new Ln(v,true);

            v.clear();
            v.add(new LongConstant(ln1));
            Expression e3 = new Ln(v,true);
View Full Code Here

            Vector v = new Vector();
            v.add(new ShortConstant(sn1));
            Expression e1 = new Exp(v,true);

            v.clear();
            v.add(new IntegerConstant(in1));
            Expression e2 = new Exp(v,true);

            v.clear();
            v.add(new LongConstant(ln1));
            Expression e3 = new Exp(v,true);
View Full Code Here

            v.add(new ShortConstant(sn1));
            v.add(new ShortConstant(sn2));
            Expression e1 = new Power(v,true);

            v.clear();
            v.add(new IntegerConstant(in1));
            v.add(new IntegerConstant(in2));
            Expression e2 = new Power(v,true);

            v.clear();
            v.add(new LongConstant(ln1));
            v.add(new LongConstant(ln2));
View Full Code Here

            Vector v = new Vector();
            v.add(new ShortConstant(sn1));
            Expression e1 = new SquareRoot(v,true);

            v.clear();
            v.add(new IntegerConstant(in1));
            Expression e2 = new SquareRoot(v,true);

            v.clear();
            v.add(new LongConstant(ln1));
            Expression e3 = new SquareRoot(v,true);
View Full Code Here

            Vector v = new Vector();
            v.add(new ShortConstant(sn1));
            Expression e1 = new Abs(v,true);

            v.clear();
            v.add(new IntegerConstant(in1));
            Expression e2 = new Abs(v,true);

            v.clear();
            v.add(new LongConstant(ln1));
            Expression e3 = new Abs(v,true);
View Full Code Here

      Vector v = new Vector();
      v.add(new ShortConstant(sn1));
      Expression e1 = new Round(v,true);

      v.clear();
      v.add(new IntegerConstant(in1));
      Expression e2 = new Round(v,true);

      v.clear();
      v.add(new LongConstant(ln1));
      Expression e3 = new Round(v,true);
View Full Code Here

TOP

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

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.