Package java.io

Examples of java.io.DataInputStream.readFloat()


      int nb_of_data_points = (int) data_stream.readFloat();
     
      // Reads the HSID data und deploys them into the data repository
      for (int i=0;i<nb_of_data_points;i++) {
        int data_point_id = (int) data_stream.readFloat();
        this.xplane_data_repository.store_sim_value(data_point_id, data_stream.readFloat());
      }
     
     
      if (this.received_hsid_packet == false) {       
//        logger.config("... detected XHSI Plugin Version " + decode_plugin_version(this.xplane_data_repository.get_sim_value(XPlaneSimDataRepository.PLUGIN_VERSION_ID)));
View Full Code Here


      DataInputStream data_stream = new DataInputStream(new ByteArrayInputStream(sim_data));   
      data_stream.skipBytes(4)// skip the bytes containing the packet type id 

      this.fms.clear();
     
      int nb_of_entries = (int) data_stream.readFloat();
     
//      if (this.received_fms_packet == false)
//        logger.fine("... FMSE packet contains " + nb_of_entries + " FMS entries");
     
      int active_entry_index = (int) data_stream.readFloat();
View Full Code Here

      int nb_of_entries = (int) data_stream.readFloat();
     
//      if (this.received_fms_packet == false)
//        logger.fine("... FMSE packet contains " + nb_of_entries + " FMS entries");
     
      int active_entry_index = (int) data_stream.readFloat();
      data_stream.skip(4);    // don't evaluate destination entry index. This info is determined by is_active flag"
     
      for (int i=0;i<nb_of_entries;i++) {
        int type = (int) data_stream.readFloat();
        String id = new String(sim_data,((i*24))+20,5).trim()
 
View Full Code Here

     
      int active_entry_index = (int) data_stream.readFloat();
      data_stream.skip(4);    // don't evaluate destination entry index. This info is determined by is_active flag"
     
      for (int i=0;i<nb_of_entries;i++) {
        int type = (int) data_stream.readFloat();
        String id = new String(sim_data,((i*24))+20,5).trim()
        data_stream.skipBytes(8);
        float altitude = data_stream.readFloat();
        float lat = data_stream.readFloat();
        float lon = data_stream.readFloat();
View Full Code Here

     
      for (int i=0;i<nb_of_entries;i++) {
        int type = (int) data_stream.readFloat();
        String id = new String(sim_data,((i*24))+20,5).trim()
        data_stream.skipBytes(8);
        float altitude = data_stream.readFloat();
        float lat = data_stream.readFloat();
        float lon = data_stream.readFloat();
        boolean is_active = (i == active_entry_index);
   
        this.fms.append_entry(new FMSEntry(id, type, lat, lon, altitude, is_active));
View Full Code Here

      for (int i=0;i<nb_of_entries;i++) {
        int type = (int) data_stream.readFloat();
        String id = new String(sim_data,((i*24))+20,5).trim()
        data_stream.skipBytes(8);
        float altitude = data_stream.readFloat();
        float lat = data_stream.readFloat();
        float lon = data_stream.readFloat();
        boolean is_active = (i == active_entry_index);
   
        this.fms.append_entry(new FMSEntry(id, type, lat, lon, altitude, is_active));
      }   
View Full Code Here

        int type = (int) data_stream.readFloat();
        String id = new String(sim_data,((i*24))+20,5).trim()
        data_stream.skipBytes(8);
        float altitude = data_stream.readFloat();
        float lat = data_stream.readFloat();
        float lon = data_stream.readFloat();
        boolean is_active = (i == active_entry_index);
   
        this.fms.append_entry(new FMSEntry(id, type, lat, lon, altitude, is_active));
      }   
     
View Full Code Here

                    bits += in.readByte();
                    bits = bits << 8;
                    bits += in.readByte();

                    x = Float.intBitsToFloat(bits);
                    y = in.readFloat();

                    // _addLegendIfNecessary might increment _currentdataset
                    connected = _addLegendIfNecessary(connected);
                    _plot.addPoint(_currentdataset, x, y, connected);
View Full Code Here

                    if (_connected) {
                        connected = true;
                    }

                    while (true) {
                        x = in.readFloat();
                        y = in.readFloat();
                        connected = _addLegendIfNecessary(connected);
                        _plot.addPoint(_currentdataset, x, y, connected);

                        if (_connected) {
View Full Code Here

                        connected = true;
                    }

                    while (true) {
                        x = in.readFloat();
                        y = in.readFloat();
                        connected = _addLegendIfNecessary(connected);
                        _plot.addPoint(_currentdataset, x, y, connected);

                        if (_connected) {
                            connected = true;
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.