Examples of GenericMessage


Examples of rlVizLib.messaging.GenericMessage

  }
 

  public AgentVersionSupportedResponse(String responseMessage) throws NotAnRLVizMessageException {
            try{
    GenericMessage theGenericResponse = new GenericMessage(responseMessage);

   
    String thePayLoadString=theGenericResponse.getPayload();

    StringTokenizer versionTokenizer = new StringTokenizer(thePayLoadString, ":");

    theVersion=new RLVizVersion(versionTokenizer.nextToken());
             }catch(Exception e){
View Full Code Here

Examples of rlVizLib.messaging.GenericMessage

import rlVizLib.messaging.NotAnRLVizMessageException;

public class EnvironmentShellMessageParser extends GenericMessageParser{

  public static EnvironmentShellMessages parseMessage(String theMessage) throws NotAnRLVizMessageException{
    GenericMessage theGenericMessage=new GenericMessage(theMessage);
    return EnvironmentShellMessageParser.makeMessage(theGenericMessage);
  }
View Full Code Here

Examples of rlVizLib.messaging.GenericMessage

            return theResult;
        }

//  Constructor when the benchmark is interpreting the returned response
  public AgentShellLoadResponse(String theMessage) throws NotAnRLVizMessageException {
    GenericMessage theGenericResponse=new GenericMessage(theMessage);

    String thePayLoadString=theGenericResponse.getPayload();

    StringTokenizer obsTokenizer = new StringTokenizer(thePayLoadString, ":");
    String loadResult=obsTokenizer.nextToken();
    String loadMessage=obsTokenizer.nextToken();
               
View Full Code Here

Examples of rlVizLib.messaging.GenericMessage

        return theTaskSpecPayload;
    }

//  Constructor when the benchmark is interpreting the returned response
    public AgentShellTaskSpecCompatResponse(String theMessage) throws NotAnRLVizMessageException {
        GenericMessage theGenericResponse = new GenericMessage(theMessage);

        String thePayLoadString = theGenericResponse.getPayload();
        DataInputStream DIS=BinaryPayload.getInputStreamFromPayload(thePayLoadString);
        theTaskSpecPayload=new TaskSpecResponsePayload(DIS);
    }
View Full Code Here

Examples of rlVizLib.messaging.GenericMessage

import rlVizLib.messaging.NotAnRLVizMessageException;

public class AgentShellMessageParser extends GenericMessageParser {

    public static AgentShellMessages parseMessage(String theMessage) throws NotAnRLVizMessageException {
        GenericMessage theGenericMessage = new GenericMessage(theMessage);
        return AgentShellMessageParser.makeMessage(theGenericMessage);
    }
View Full Code Here

Examples of rlVizLib.messaging.GenericMessage

    this.maxs=maxs;
  }

  public EnvRangeResponse(String responseMessage) throws NotAnRLVizMessageException {

    GenericMessage theGenericResponse = new GenericMessage(responseMessage);

    String thePayLoadString=theGenericResponse.getPayload();

    StringTokenizer obsTokenizer = new StringTokenizer(thePayLoadString, ":");

    String numValuesToken=obsTokenizer.nextToken();
    int numValues=Integer.parseInt(numValuesToken);
View Full Code Here

Examples of rlVizLib.messaging.GenericMessage

  public EnvReceiveRunTimeParametersResponse(boolean accepted){
    this.accepted=accepted;
  }

  public EnvReceiveRunTimeParametersResponse(String responseMessage) throws NotAnRLVizMessageException {
    GenericMessage theGenericResponse = new GenericMessage(responseMessage);

    String thePayLoadString=theGenericResponse.getPayload();
   
    this.accepted=Boolean.parseBoolean(thePayLoadString);
  }
View Full Code Here

Examples of rlVizLib.messaging.GenericMessage

     */public EpisodeSummaryChunkResponse(String theLogString, int amountRequested) {
        this.theLogData = theLogString;
    }
   
        public EpisodeSummaryChunkResponse(String responseMessage) throws NotAnRLVizMessageException {
        GenericMessage theGenericResponse = new GenericMessage(responseMessage);
        String thePayLoad = theGenericResponse.getPayload();

        this.theLogData=thePayLoad;
    }
View Full Code Here

Examples of rlVizLib.messaging.GenericMessage

    this.theVisualizerClassName=theVisualizerClassName;
  }
 

  static public EnvVisualizerNameResponse EnvVisualizerNameResponseFromResponseString(String responseMessage) throws NotAnRLVizMessageException {
    GenericMessage theGenericResponse = new GenericMessage(responseMessage);
    String theVisualizerClassName=theGenericResponse.getPayload();
   
    EnvVisualizerNameResponse theResponse=new EnvVisualizerNameResponse(theVisualizerClassName);
    return theResponse;
  }
View Full Code Here

Examples of rlVizLib.messaging.GenericMessage

    this.theResult=theResult;
  }

//  Constructor when the benchmark is interpreting the returned response
  public EnvShellLoadResponse(String theMessage) throws NotAnRLVizMessageException {
    GenericMessage theGenericResponse=new GenericMessage(theMessage);

    String thePayLoadString=theGenericResponse.getPayload();

    StringTokenizer obsTokenizer = new StringTokenizer(thePayLoadString, ":");
    String loadResult=obsTokenizer.nextToken();
    String loadMessage=obsTokenizer.nextToken();
                theResult=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.