Package org.movsim.simulator.roadnetwork

Examples of org.movsim.simulator.roadnetwork.RoadNetwork


        }
    }

    @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


     * @throws SAXException
     * @throws JAXBException
     */
    public Simulator() {
        this.projectMetaData = ProjectMetaData.getInstance();
        roadNetwork = new RoadNetwork();
        simulationRunnable = new SimulationRunnable(this);
        simulationRunnable.setCompletionCallback(this);
    }
View Full Code Here

TOP

Related Classes of org.movsim.simulator.roadnetwork.RoadNetwork

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.