-
Notifications
You must be signed in to change notification settings - Fork 0
/
config1.txt
76 lines (59 loc) · 1.32 KB
/
config1.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
# 1. Define Road Parameters
Road_Id=1 # Unique Id for the simulation
Road_Length=100
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=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=RED # Make the signal RED
# Send vehicles with given types on the road (one per second)
bike=YELLOW
Truck=BLUE
bike=GREEN
Bus=BLUE
Pass=50 # Let the simulation keep running for 15 seconds
# Now below vehicles enter the road
Car=BLUE
Car=RED
Truck=YELLOW
Bus=BLUE
Pass=250
# Turn the signal green
SIGNAL=GREEN
Car=BLUE
Car=RED
Truck=YELLOW
Bus=BLUE
Pass=150
Car=BLUE
Car=RED
Truck=YELLOW
Bus=BLUE
Pass=500
#END