Examples of totalTravelDistance()


Examples of org.movsim.simulator.vehicles.PhysicalQuantities.totalTravelDistance()

     *            the writer
     */
    static void writeData(double time, Vehicle veh, Vehicle frontVeh, PrintWriter writer) {
        final PhysicalQuantities physicalQuantities = veh.physicalQuantities();
        writer.printf(outputFormat, time, veh.roadSegmentId(), veh.lane(), physicalQuantities.getFrontPosition(),
                physicalQuantities.totalTravelDistance(), physicalQuantities.getSpeed(), physicalQuantities.getAcc(),
                physicalQuantities.accModel(), physicalQuantities.getNetDistance(frontVeh),
                physicalQuantities.getRelSpeed(frontVeh),
                physicalQuantities.getxScale() * veh.getDistanceToTrafficlight(),
                1000 * veh.getActualFuelFlowLiterPerS(), frontVeh == null ? -1 : frontVeh.getVehNumber(),
                veh.getSlope());
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.