Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(final String[] arguments) {
- try {
- setUp(arguments);
- timeRecorder.recordSimulationStartTime();
- while (simulationController.simulationIsNotOver()) {
- simulationController.advanceSimulationBySinglePhase();
- trafficLightManager.applyTLSPrograms(
- tlsOptimizer.createNewTLSPrograms(
- trafficLightManager.getCurrentPrograms(),
- simulationController.getLastPhaseTrafficInformation()));
- }
- timeRecorder.recordSimulationEndTime();
- } catch (Exception e) {
- logException(e);
- } finally {
- try {
- simulationController.stopSimulation();
- } catch (Exception e) {
- logException(e);
- }
- }
- logger.info("Simulation is over.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement