Examples of readFloat()


Examples of com.higherfrequencytrading.chronicle.Excerpt.readFloat()

                    // busy wait
                }
                for (int k = 0; k < batchSize; k++) {
                    char ch = (char) excerpt.readUnsignedByte();
                    long l = excerpt.readLong();
                    float d = excerpt.readFloat();
                    assert ch == 'M';
                    assert l == i;
                    assert d == (float) i;
                }
                excerpt.finish();
View Full Code Here

Examples of com.jme.util.export.InputCapsule.readFloat()

    }

    public void read(JMEImporter e) throws IOException {
        super.read(e);
        InputCapsule capsule = e.getCapsule(this);
        xExtent = capsule.readFloat("xExtent", 0);
        yExtent = capsule.readFloat("yExtent", 0);
        zExtent = capsule.readFloat("zExtent", 0);
        center.set((Vector3f) capsule.readSavable("center", Vector3f.ZERO.clone()));
  // TODO: texture attrs
    }
View Full Code Here

Examples of com.jme3.export.InputCapsule.readFloat()

     * @param im
     * @throws IOException
     */
    public void read(JmeImporter im) throws IOException {
        InputCapsule ic = im.getCapsule(this);
        maxDistance = ic.readFloat("maxDistance", 40);
        minDistance = ic.readFloat("minDistance", 1);
    }

  public void addCamDirectionListener(CamLocationListener listener) {
    if (listener == null) throw new NullPointerException();
View Full Code Here

Examples of com.jme3.scene.plugins.blender.file.BlenderInputStream.readFloat()

                BlenderInputStream blenderInputStream = blenderContext.getInputStream();
                blenderInputStream.setPosition(fileBlockHeader.getBlockPosition());
                int knotsAmount = fileBlockHeader.getCount() * fileBlockHeader.getSize() / 4;
                knots[i] = new ArrayList<Float>(knotsAmount);
                for (int j = 0; j < knotsAmount; ++j) {
                    knots[i].add(Float.valueOf(blenderInputStream.readFloat()));
                }
            }
        }

        // loading the flags and orders (basis functions degrees)
View Full Code Here

Examples of com.peterhi.obsolete.Stream.readFloat()

      stream.writeBit(1);
     
      stream.readBit();
     
      for (float sample : sampleFloats()) {
        assertEquals((double )sample, (double )stream.readFloat(), 0.00000001);
      }
     
      assertEquals(1, stream.getData().readable());
    } finally {
    }
View Full Code Here

Examples of de.hpi.eworld.visualizer.simulation.traci.common.TraciInputStream.readFloat()

   
    TraciInputStream payload = command.getPayload();

    double switchTime = payload.readDouble();
    byte[] precedingEdge = payload.readTraciString();
    float positionOnPrecedingEdge = payload.readFloat();
    byte[] succeedingEdge = payload.readTraciString();
    int newPhase = payload.readInt();
    double yellowTime = payload.readDouble();
   
    return new ResponseTrafficLightSwitchCommandReader(
View Full Code Here

Examples of es.upv.simulator.Tokenizer.readFloat()

        try
        {
            Tokenizer tok = new Tokenizer(fMuestra);
            tok.whitespaceChars(58, 255);
            tok.wordChars(48, 57);
            valorMax = tok.readFloat();
            valorMin = tok.readFloat();
            nMuestras = tok.readInt();
            velozMuestreo = tok.readInt();
            int longitud = nMuestras * 2;
            byte buf[] = new byte[longitud];
View Full Code Here

Examples of htsjdk.tribble.util.LittleEndianInputStream.readFloat()

                int nDataPoints = reader.readInt();
                for (int n = 0; n < nDataPoints; n++) {
                    int start = reader.readInt();
                    int end = reader.readInt();
                    float combinedScore = reader.readFloat();
                    float[] timePointScores = new float[nTimePoints];
                    for (int i = 0; i < nTimePoints; i++) {
                        timePointScores[i] = reader.readFloat();
                    }
                    peaks.add(new Peak(chr, start, end, "", combinedScore, timePointScores));
View Full Code Here

Examples of io.netty.buffer.ByteBuf.readFloat()

        }

        byte b = frame.readByte();
        MixEventName event = MixEventName.resolve(b);
        Object feature = decodeObject(frame);
        float weight = frame.readFloat();
        float covariance = frame.readFloat();
        short clock = frame.readShort();
        int deltaUpdates = frame.readInt();
        String groupID = readString(frame);
View Full Code Here

Examples of java.io.DataInput.readFloat()

            Vector<Float> floatV = new Vector<Float>();

            try {
                while (true) {
                    float f = dis.readFloat();
                    floatV.add(new Float(f));
                }
            } catch (EOFException eof) {
                stream.close();
            }
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.