Package rlVizLib.messaging

Examples of rlVizLib.messaging.GenericMessage


    this.theVisualizerClassName=theVisualizerClassName;
  }
 

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


public class EnvShellListResponse extends AbstractResponse{
  private Vector<String> theEnvList = new Vector<String>();
  private Vector<ParameterHolder> theParamList = new Vector<ParameterHolder>();

  public EnvShellListResponse(String responseMessage) throws NotAnRLVizMessageException {
    GenericMessage theGenericResponse=new GenericMessage(responseMessage);
    String thePayLoadString=theGenericResponse.getPayload();

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

    String numEnvironmentsToken=envListTokenizer.nextToken();
View Full Code Here

        }

        public Response(String responseMessage) throws NotAnRLVizMessageException {
            try {
                GenericMessage theGenericResponse = new GenericMessage(responseMessage);
                String payLoad = theGenericResponse.getPayLoad();
                DataInputStream DIS = BinaryPayload.getInputStreamFromPayload(payLoad);
                theImage = ImageIO.read(DIS);
            } catch (IOException ex) {
                Logger.getLogger(EnvGraphicRequest.class.getName()).log(Level.SEVERE, null, ex);
            }
View Full Code Here

  }
 

  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

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

            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

        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

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

    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

  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

TOP

Related Classes of rlVizLib.messaging.GenericMessage

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.