Java 类org.omg.CORBA.FloatHolder 实例源码

项目:javify    文件:gnuDynAny.java   
/** {@inheritDoc} */
public float get_float() throws TypeMismatch
{
  try
    {
      return ((FloatHolder) holder).value;
    }
  catch (ClassCastException cex)
    {
      TypeMismatch m = new TypeMismatch();
      m.initCause(cex);
      throw m;
    }
}
项目:javify    文件:gnuDynAny.java   
/** {@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;
    }
}
项目:javify    文件:gnuAny.java   
/** {@inheritDoc} */
public float extract_float()
                    throws BAD_OPERATION
{
  check(TCKind._tk_float);
  return ((FloatHolder) has).value;
}
项目:jvm-stm    文件:gnuDynAny.java   
/** {@inheritDoc} */
public float get_float() throws TypeMismatch
{
  try
    {
      return ((FloatHolder) holder).value;
    }
  catch (ClassCastException cex)
    {
      TypeMismatch m = new TypeMismatch();
      m.initCause(cex);
      throw m;
    }
}
项目:jvm-stm    文件:gnuDynAny.java   
/** {@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;
    }
}
项目:jvm-stm    文件:gnuAny.java   
/** {@inheritDoc} */
public float extract_float()
                    throws BAD_OPERATION
{
  check(TCKind._tk_float);
  return ((FloatHolder) has).value;
}
项目:JamVM-PH    文件:gnuDynAny.java   
/** {@inheritDoc} */
public float get_float() throws TypeMismatch
{
  try
    {
      return ((FloatHolder) holder).value;
    }
  catch (ClassCastException cex)
    {
      TypeMismatch m = new TypeMismatch();
      m.initCause(cex);
      throw m;
    }
}
项目:JamVM-PH    文件:gnuDynAny.java   
/** {@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;
    }
}
项目:JamVM-PH    文件:gnuAny.java   
/** {@inheritDoc} */
public float extract_float()
                    throws BAD_OPERATION
{
  check(TCKind._tk_float);
  return ((FloatHolder) has).value;
}
项目:breakout    文件:Survey3dModel.java   
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;
}
项目:classpath    文件:gnuDynAny.java   
/** {@inheritDoc} */
public float get_float() throws TypeMismatch
{
  try
    {
      return ((FloatHolder) holder).value;
    }
  catch (ClassCastException cex)
    {
      TypeMismatch m = new TypeMismatch();
      m.initCause(cex);
      throw m;
    }
}
项目:classpath    文件:gnuDynAny.java   
/** {@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;
    }
}
项目:classpath    文件:gnuAny.java   
/** {@inheritDoc} */
public float extract_float()
                    throws BAD_OPERATION
{
  check(TCKind._tk_float);
  return ((FloatHolder) has).value;
}