Package it.hakvoort.neuroclient.reply

Examples of it.hakvoort.neuroclient.reply.HeaderReply


   
    // get the status of NeuroServer
    StatusReply statusReply = agent.getStatus();
   
    // get the header of client 0
    HeaderReply headerReply = agent.getHeader(0);
   
    // get the role of this agent
    RoleReply roleReply = agent.getRole();
   
    // start watching client 0
View Full Code Here


    }
  }

  private void parseHeader(String line) {
    if (reply == null) {
      reply = new HeaderReply();

      if (line.startsWith("200")) {
        reply.setResponseCode(ResponseCode.OK);
      } else if (line.startsWith("400")) {
        reply.setResponseCode(ResponseCode.ERROR);
View Full Code Here

  }
 
  public Reply setHeader(NeuroServerHeader header) {
    if(!header.isValid()) {
      System.err.println(String.format("Header not valid."));
      return new HeaderReply(ResponseCode.ERROR, null);
    }
   
    return executeCommand(Command.SET_HEADER, header.getData());
  }
View Full Code Here

TOP

Related Classes of it.hakvoort.neuroclient.reply.HeaderReply

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.