Package de.hpi.eworld.simulationstatistic.model

Examples of de.hpi.eworld.simulationstatistic.model.StatLane


      //
      // lane
      //
      if( qualifiedName.equals( "lane" ) ) {
        StatLane newLane;
        try {
          //SUMO sets speed to maxspeed when no data collected
          //dont want that, so set to 0 if no data (sampledseconds == 0)
          //same thing for traveltime
          double seconds = Double.parseDouble(attributes.getValue( "sampledSeconds" ));
          double speed = (seconds == 0.0)? 0.0: Double.parseDouble(attributes.getValue( "speed" ));
          double traveltime = (seconds == 0.0)? 0.0: Double.parseDouble(attributes.getValue( "traveltime" ));
          newLane = new StatLane(
              attributes.getValue( "id" ),
              traveltime,
              seconds,
              parseDouble(attributes.getValue( "density" )),
              parseDouble(attributes.getValue( "occupancy" )),
View Full Code Here

TOP

Related Classes of de.hpi.eworld.simulationstatistic.model.StatLane

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.