Examples of FloatHolder


Examples of org.msgpack.value.holder.FloatHolder

                        long l = ih.asLong();
                        System.out.println("read long: " + l);
                    }
                    break;
                case FLOAT:
                    FloatHolder fh = v.getFloatHolder();
                    float f = fh.toFloat();   // read as float
                    double d = fh.toDouble(); // read as double
                    System.out.println("read float: " + d);
                    break;
                case STRING:
                    String s = v.get().asString().toString();
                    System.out.println("read string: " + s);
View Full Code Here

Examples of org.omg.CORBA.FloatHolder

    public void test_float_streamable()
        throws Exception
    {
        float testValue = (float) 4711.0;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new FloatHolder(testValue));
        assertEquals(testValue, outAny.extract_float(), 0.0);

        Any inAny = server.bounce_any(outAny);

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

Examples of org.omg.CORBA.FloatHolder

    }

    @Test
    public void test_pass_out_float()
    {
        FloatHolder x = new FloatHolder( 1.0F );
        server.pass_out_float( x );
        assertEquals( 0.005F, x.value, 0 );
    }
View Full Code Here

Examples of org.omg.CORBA.FloatHolder

    }

    @Test
    public void test_pass_inout_float()
    {
        FloatHolder x = new FloatHolder( -23.4F );
        server.pass_inout_float( x );
        assertEquals( -22.4F, x.value, 0 );
    }
View Full Code Here

Examples of org.omg.CORBA.FloatHolder

    public void test_float_streamable()
        throws Exception
    {
        float testValue = (float) 4711.0;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new FloatHolder(testValue));
        assertEquals(testValue, outAny.extract_float(), 0.0);

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_float(), 0.0);
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.