Examples of totalVehicleTravelTime()


Examples of org.movsim.simulator.roadnetwork.RoadNetwork.totalVehicleTravelTime()

    @Override
    public void simulationComplete(double simulationTime) {
        RoadNetwork roadNetwork = simulator.getRoadNetwork();
        HighscoreEntry highscoreEntry = new HighscoreEntry();
        highscoreEntry.setQuantity(Quantity.totalSimulationTime, simulationTime);
        highscoreEntry.setQuantity(Quantity.totalTravelTime, roadNetwork.totalVehicleTravelTime());
        highscoreEntry.setQuantity(Quantity.totalTravelDistance, roadNetwork.totalVehicleTravelDistance()
                * Units.M_TO_KM);
        highscoreEntry.setQuantity(Quantity.totalFuelUsedLiters, roadNetwork.totalVehicleFuelUsedLiters());
        highscoreForGames(highscoreEntry);
    }
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.