Package it.hakvoort.neuroclient

Examples of it.hakvoort.neuroclient.EDFHeader$EDFChannel


    } 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


        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

Related Classes of it.hakvoort.neuroclient.EDFHeader$EDFChannel

Copyright © 2018 www.massapicom. 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.