Examples of insert_double()


Examples of org.omg.CORBA.Any.insert_double()

        Any idAny = getORB().create_any();
        idAny.insert_string("stockQuotes");
        quoteEvent.filterable_data[0] = new Property("stock_id", idAny);

        Any priceAny = getORB().create_any();
        priceAny.insert_double(200.0);
        quoteEvent.filterable_data[1] = new Property("stock_price", priceAny);

        quoteEvent.remainder_of_body = getORB().create_any();
        runEvaluation(quoteEvent, "$stock_price >= 200.00", "TRUE");
        runEvaluation(quoteEvent, "$stock_price <= 200.00", "TRUE");
View Full Code Here

Examples of org.omg.CORBA.Any.insert_double()

    public void test_double()
        throws Exception
    {
        double testValue = 4711.0;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_double(testValue);
        assertEquals(testValue, outAny.extract_double(), 0.0);

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_double(), 0.0);
View Full Code Here

Examples of org.omg.DynamicAny.DynAny.insert_double()

      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      String msg = "Value inserted into DynAny object is not equal to value ";
      msg += "extracted from same DynAny object";

      dynAny.insert_double (700.0);
      assertEquals (msg, 700.0, dynAny.get_double(), 0.0);
   }

      /**
    * Test inserting a basic value into a DynAny that has a different typecode.
View Full Code Here

Examples of org.omg.DynamicAny.DynAny.insert_double()

      TypeCode tc     = orb.get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean);
      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      try
      {
          dynAny.insert_double (700.0);
          fail ("should have thrown TypeMismatch");
      }
      catch (TypeMismatch ex)
      {
          // ok
View Full Code Here

Examples of org.omg.DynamicAny.DynAny.insert_double()

      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      String msg = "Value inserted into DynAny object is not equal to value ";
      msg += "extracted from same DynAny object";

      dynAny.insert_double (700.0);
      assertEquals (msg, 700.0, dynAny.get_double(), 0.0);
   }

      /**
    * Test inserting a basic value into a DynAny that has a different typecode.
View Full Code Here

Examples of org.omg.DynamicAny.DynAny.insert_double()

      TypeCode tc     = orb.get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean);
      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      try
      {
          dynAny.insert_double (700.0);
          fail ("should have thrown TypeMismatch");
      }
      catch (TypeMismatch ex)
      {
          // ok
View Full Code Here
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.