This repository was archived by the owner on Apr 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTrafficSimulationMain.cpp
More file actions
56 lines (44 loc) · 1.91 KB
/
TrafficSimulationMain.cpp
File metadata and controls
56 lines (44 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include "TrafficSimulation.h"
#include "DesignByContract.h"
#include "Standard_Values.h"
using namespace std;
int main(){
//* Task 1 *//
//==== Normal simulation files ====//
//TrafficSimulation ts(SIM0); // Single vehicle , long road
TrafficSimulation ts(SIM1); // Basic Simulation
//TrafficSimulation ts(SIM2); // Empty road simulation
//TrafficSimulation ts(SIM3); // Multiple Roads simulation
//==== Vehicle generator files ====//
//TrafficSimulation ts(SIM4); // VehicleGenerator sim
//TrafficSimulation ts(SIM5); // VehicleGenerator sim with multiple roads
//TrafficSimulation ts(SIM6); // VehicleGenerator sim and with cars on different roads
//==== Files with errors ====//
//TrafficSimulation ts(SIM7); // Normal simulation, with invalid road length
//TrafficSimulation ts(SIM8); // Normal simulation, with invalid traffic-light position
//TrafficSimulation ts(SIM9); // Normal simulation, with invalid vehicle position
//TrafficSimulation ts(SIM10); // Vehicle generator simulation, with invalid vehicle generator frequencies
//TrafficSimulation ts(SIM11); // Normal simulation, with empty parameter for road
//==== Crossroad files ====//
//TrafficSimulation ts(SIM12);
//==== Busstop ====//
//TrafficSimulation ts(SIM13);
//==== Vehicle Type ====//
//TrafficSimulation ts(SIM14);
//==== Different types of vehicles ====//
//TrafficSimulation ts(SIM15);
//==== Crossroads ====//
//TrafficSimulation ts(SIM16);
//==== BusStop + Bus ====//
//TrafficSimulation ts(SIM17);
//==== Negative numbers ====//
//TrafficSimulation ts(SIM18);
//==== Simulation functions ====//
// ts.printAll();
//ts.startSimulation(false, false, true); // Simulates until there is a maximum vehicle count reached --> Standard_Values --> MAX_VEHICLES
//ts.startSimulation(); // Simulate current loaded file
ts.startSimulation(false , true , false , false , true , true , true , topView);
//ts.generateIni(true, true, topView);
//ts.generateImage();
return 0;
}