Java Code Examples for org.omg.CORBA.FloatHolder

The following are top voted examples for showing how to use org.omg.CORBA.FloatHolder. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: javify   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public float get_float() throws TypeMismatch
{
  try
    {
      return ((FloatHolder) holder).value;
    }
  catch (ClassCastException cex)
    {
      TypeMismatch m = new TypeMismatch();
      m.initCause(cex);
      throw m;
    }
}
 
Example 2
Project: javify   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public void insert_float(float a_x) throws InvalidValue, TypeMismatch
{
  try
    {
      ((FloatHolder) holder).value = a_x;
      valueChanged();
    }
  catch (ClassCastException cex)
    {
      TypeMismatch t = new TypeMismatch();
      t.initCause(cex);
      throw t;
    }
}
 
Example 3
Project: javify   File: gnuAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public float extract_float()
                    throws BAD_OPERATION
{
  check(TCKind._tk_float);
  return ((FloatHolder) has).value;
}
 
Example 4
Project: jvm-stm   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public float get_float() throws TypeMismatch
{
  try
    {
      return ((FloatHolder) holder).value;
    }
  catch (ClassCastException cex)
    {
      TypeMismatch m = new TypeMismatch();
      m.initCause(cex);
      throw m;
    }
}
 
Example 5
Project: jvm-stm   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public void insert_float(float a_x) throws InvalidValue, TypeMismatch
{
  try
    {
      ((FloatHolder) holder).value = a_x;
      valueChanged();
    }
  catch (ClassCastException cex)
    {
      TypeMismatch t = new TypeMismatch();
      t.initCause(cex);
      throw t;
    }
}
 
Example 6
Project: jvm-stm   File: gnuAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public float extract_float()
                    throws BAD_OPERATION
{
  check(TCKind._tk_float);
  return ((FloatHolder) has).value;
}
 
Example 7
Project: JamVM-PH   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public float get_float() throws TypeMismatch
{
  try
    {
      return ((FloatHolder) holder).value;
    }
  catch (ClassCastException cex)
    {
      TypeMismatch m = new TypeMismatch();
      m.initCause(cex);
      throw m;
    }
}
 
Example 8
Project: JamVM-PH   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public void insert_float(float a_x) throws InvalidValue, TypeMismatch
{
  try
    {
      ((FloatHolder) holder).value = a_x;
      valueChanged();
    }
  catch (ClassCastException cex)
    {
      TypeMismatch t = new TypeMismatch();
      t.initCause(cex);
      throw t;
    }
}
 
Example 9
Project: JamVM-PH   File: gnuAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public float extract_float()
                    throws BAD_OPERATION
{
  check(TCKind._tk_float);
  return ((FloatHolder) has).value;
}
 
Example 10
Project: breakout   File: Survey3dModel.java   View source code 5 votes vote down vote up
private float getFarthestExtent(Set<ShotKey> shotsInView, float[] shotsInViewMbr, float[] direction,
		FloatBinaryOperator extentFunction) {
	FloatHolder farthest = new FloatHolder(Float.NaN);

	// float[] testPoint = new float[3];

	RTraversal.traverse(getTree().getRoot(),
			node -> {
				if (!Rectmath.intersects3(shotsInViewMbr, node.mbr())) {
					return false;
				}
				// return Rectmath.findCorner3( node.mbr( ) , testPoint ,
				// corner -> {
				// float dist = Vecmath.dot3( corner , direction );
				// return farthest.value != extentFunction.applyAsFloat(
				// farthest.value , dist ) ? true : null;
				// } ) != null;
				return true;
			},
			leaf -> {
				if (shotsInView.contains(leaf.object().key)) {
					for (float[] coord : leaf.object().coordIterable()) {
						float dist = Vecmath.dot3(coord, direction);
						farthest.value = extentFunction.applyAsFloat(farthest.value, dist);
					}
				}
				return true;
			});

	return farthest.value;
}
 
Example 11
Project: classpath   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public float get_float() throws TypeMismatch
{
  try
    {
      return ((FloatHolder) holder).value;
    }
  catch (ClassCastException cex)
    {
      TypeMismatch m = new TypeMismatch();
      m.initCause(cex);
      throw m;
    }
}
 
Example 12
Project: classpath   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public void insert_float(float a_x) throws InvalidValue, TypeMismatch
{
  try
    {
      ((FloatHolder) holder).value = a_x;
      valueChanged();
    }
  catch (ClassCastException cex)
    {
      TypeMismatch t = new TypeMismatch();
      t.initCause(cex);
      throw t;
    }
}
 
Example 13
Project: classpath   File: gnuAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public float extract_float()
                    throws BAD_OPERATION
{
  check(TCKind._tk_float);
  return ((FloatHolder) has).value;
}