Examples of EDFHeader


Examples of it.hakvoort.neuroclient.EDFHeader

    } catch (IOException e) {
      e.printStackTrace();
    }
   
    // create a new EDFHeader with the properties
    EDFHeader header = new EDFHeader(properties);
   
    // set the agent's header
    agent.setHeader(header);
   
    // send a EEG Data Packet to NeuroServer
View Full Code Here

Examples of it.hakvoort.neuroclient.EDFHeader

        finished = true;
        reply = null;
      }
    } else {
      ByteBuffer buffer = ByteBuffer.wrap(line.getBytes());
      EDFHeader header = new EDFHeader();
     
      byte[] main   = new byte[256];
     
      buffer.get(main);
      header.setMainHeader(main);
     
      byte[] channels = new byte[header.getNumChannels() * 256];

      buffer.get(channels);
      header.setChannelHeader(channels);
     
      ((HeaderReply) reply).header = header;
      finished = 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.