Package cz.matfyz.aai.fantom.message

Examples of cz.matfyz.aai.fantom.message.MessageReady


    logger.debug("Waiting for 'ready' from the client");
    Message msg = receiveMessage(null);
    if(!(msg instanceof MessageReady))
      throw new ProtocolException("The 'ready' message was expected", this);

    MessageReady msgReady = (MessageReady)msg;
    this.clientName = msgReady.getClientName();
    logger.debug("Client connected: " + this.clientName);
   
    if(this.clientType != msgReady.getClientType())
      throw new ClientException("Expected client type " + this.clientType
          + " does not match the real client type " + msgReady.getClientType(), this);
  }
View Full Code Here


    try {
      Message msg = null;
     
      setStreams(System.in, System.out, null);
     
      msg = new MessageReady(agent.getName(), agent.getClientType());
      sendMessage(msg);
     
      tournament_loop:
      while(true) {
        msg = receiveMessage(null);
View Full Code Here

TOP

Related Classes of cz.matfyz.aai.fantom.message.MessageReady

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.