Package de.tudresden.ws.container

Examples of de.tudresden.ws.container.SumoStringList


      double y = resp.content().readDouble();
      double z = resp.content().readDouble();
      output = new SumoPosition3D(x,y,z);
    }else if(sc.output_type == Constants.TYPE_STRINGLIST){
     
      SumoStringList ssl = new SumoStringList();
      int laenge = resp.content().readInt();
      for(int i=0; i<laenge; i++){
        ssl.add(resp.content().readStringASCII());
      }
      output = ssl;
   
    }else if(sc.output_type == Constants.TYPE_BOUNDINGBOX){
     
View Full Code Here


    }
   
    else if((Integer) input2 == Constants.VAR_ROUTE){
     
      cmd.content().writeUnsignedByte(Constants.TYPE_STRINGLIST);
      SumoStringList sl = (SumoStringList) array[0];
      cmd.content().writeInt(sl.size());
      for(String s : sl) {
        cmd.content().writeStringASCII(s);
      }
     
    }
View Full Code Here

        cmd.content().writeStringASCII(s);
      }
     
    }else if(input.getClass().equals(SumoStringList.class)){
       
        SumoStringList sl = (SumoStringList) input;
        cmd.content().writeUnsignedByte(Constants.TYPE_STRINGLIST);
        cmd.content().writeInt(sl.size());
        for(String s : sl){
          cmd.content().writeStringASCII(s);
        }
 
    }else if(input.getClass().equals(SumoTLSLogic.class)){
View Full Code Here

  }

  public SumoStringList getStringList(Object obj) {

    SumoStringList output = new SumoStringList();

    try {

      if (obj.getClass().equals(SumoStringList.class)) {
        output = (SumoStringList) obj;
View Full Code Here

TOP

Related Classes of de.tudresden.ws.container.SumoStringList

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.