Package it.hakvoort.neuroclient.agent

Examples of it.hakvoort.neuroclient.agent.EEGAgent


 
  }
 
  public static void main(String[] args) {
    // create a new EEGAgent
    EEGAgent agent = new EEGAgent("localhost", 8336);
   
    // create a properties file
    Properties properties = new Properties();
   
    try {
      // load the properties from a file.
      properties.load(new FileInputStream("etc/header.properties"));
    } catch (FileNotFoundException e) {
      e.printStackTrace();
    } 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
    agent.sendPacket(new NeuroServerPacket(1, 3, new int[]{125, 129, 111}));
       
    // close the agent and disconnect from NeuroServer.
    agent.close()
  }
View Full Code Here

TOP

Related Classes of it.hakvoort.neuroclient.agent.EEGAgent

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.