Package de.tudresden.ws.container

Examples of de.tudresden.ws.container.SumoGeometry


    }
    else if(sc.output_type == Constants.TYPE_POLYGON){
     
      int laenge = resp.content().readUnsignedByte();
     
      SumoGeometry sg = new SumoGeometry();
      for(int i=0; i<laenge; i++){
        double x =  (Double) this.get_value(Constants.TYPE_DOUBLE, resp);
        double y = (Double) this.get_value(Constants.TYPE_DOUBLE, resp);
        sg.add(new SumoPosition2D(x,y));
      }
     
      output = sg;
   
    }
View Full Code Here


      this.cmd.content().writeByte(sc.b);
      this.cmd.content().writeByte(sc.a);
     
    }else if(input.getClass().equals(SumoGeometry.class)){
     
      SumoGeometry sg = (SumoGeometry) input;
      cmd.content().writeUnsignedByte(sg.coords.size());
     
      for(SumoPosition2D pos : sg.coords){   
        cmd.content().writeDouble(pos.x);
        cmd.content().writeDouble(pos.y);
View Full Code Here

  }

  public SumoGeometry getPolygon(Object obj) {

    SumoGeometry output = new SumoGeometry();

    try {

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

TOP

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

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.