-
Notifications
You must be signed in to change notification settings - Fork 0
/
config5.txt
77 lines (56 loc) · 1.14 KB
/
config5.txt
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# 1. Define Road Parameters
Road_Id=1 # Unique Id for the simulation
Road_Length=70
Road_Width=16
# 2. Define default params for all vehicle types
# 3. Define params for specific vehicle types
Vehicle_Type=Car # A new vehicle class will start with a type field
Vehicle_Length=3
Vehicle_Width=2
Vehicle_Acceleration=0.1
Vehicle_MaxSpeed=0.4
Vehicle_Type=Bike # The first character will be used as the symbol for printing
Vehicle_Length=2
Vehicle_Width=1
Vehicle_Acceleration=0.1
Vehicle_MaxSpeed=0.2
Vehicle_Type=Bus
Vehicle_Length=7
Vehicle_Width=2
Vehicle_Acceleration=0.1
Vehicle_MaxSpeed=0.3
Vehicle_Type=Truck
Vehicle_Length=6
Vehicle_Width=2
Vehicle_Acceleration=0.1
Vehicle_MaxSpeed=0.3
Vehicle_Type=Auto
Vehicle_Length=3
Vehicle_Width=2
Vehicle_Acceleration=0.05
Vehicle_MaxSpeed=0.2
# Definitions over
# 4. Start the simulation
SIGNAL=GREEN # Make the signal GREEN
# Send vehicles with given types on the road (one per second)
SIGNAL=RED
Truck=GREEN
Car=WHITE
bike=YELLOW
Bus=BLUE
Pass=150
Car=BLUE
bike=YELLOW
Auto=GREEN
Truck=BLUE
Pass=50
bike=RED
bike=YELLOW
Pass=20
Bus=BLUE
Truck=RED
SIGNAL=RED
Pass=300
SIGNAL=GREEN
Pass=200
#END