@@ -15,10 +15,9 @@ public class Formula1Car {
15
15
private TyreCompound currTyre ;
16
16
private boolean drs ;
17
17
18
- /**
19
- * Default Constructor for a Formula1Car with no team, empty
20
- * sponsors array, empty driver name, driver number 0, no tyre
21
- * compound, and DRS is disabled by default
18
+ /**
19
+ * Default Constructor for a Formula1Car with no team, empty sponsors array, empty driver name,
20
+ * driver number 0, no tyre compound, and DRS is disabled by default
22
21
*/
23
22
public Formula1Car () {
24
23
this .team = null ;
@@ -28,14 +27,14 @@ public Formula1Car() {
28
27
this .currTyre = null ;
29
28
this .drs = false ;
30
29
}
30
+
31
31
/**
32
- * @param team the tean that this Formula1Car belongs
33
- * @param sponsors array of sponsor names accosicated with this Formula1Car
32
+ * @param team the tean that this Formula1Car belongs
33
+ * @param sponsors array of sponsor names accosicated with this Formula1Car
34
34
* @param driverName the name of the driver of this Formula1Car
35
- * @param driverNum the drivers number for the Formula1Car
36
- * @param position drivers current racing position on the grid
37
- * @param currTyre current TyreCompound fitted on this Formula1Car
38
- *
35
+ * @param driverNum the drivers number for the Formula1Car
36
+ * @param position drivers current racing position on the grid
37
+ * @param currTyre current TyreCompound fitted on this Formula1Car
39
38
* @see Team
40
39
* @see TyreCompound
41
40
*/
@@ -56,11 +55,9 @@ public Formula1Car(
56
55
}
57
56
58
57
/**
59
- * Displays a header line then,
60
- * Prints a list of sponsors to the console.
58
+ * Displays a header line then, Prints a list of sponsors to the console.
61
59
*
62
60
* @throws NoSponsorsException if there are no sponsors associated with this Formula1Car
63
- *
64
61
* @see NoSponsorsException
65
62
*/
66
63
public void printSponsors () throws NoSponsorsException {
@@ -73,14 +70,13 @@ public void printSponsors() throws NoSponsorsException {
73
70
}
74
71
}
75
72
}
73
+
76
74
/**
77
- * Checks if DRS (Drag Reduction System) is availible to use
78
- * This method determines DRS availibility based on weather or not
79
- * your Formula1Car is in the current track's designated DRS zone.
80
- *
81
- * @return {@code true} if DRS is availible (track has a DRS zone),
82
- * {@code false} otherwise
75
+ * Checks if DRS (Drag Reduction System) is availible to use This method determines DRS
76
+ * availibility based on weather or not your Formula1Car is in the current track's designated DRS
77
+ * zone.
83
78
*
79
+ * @return {@code true} if DRS is availible (track has a DRS zone), {@code false} otherwise
84
80
* @see Track#isDrsZone()
85
81
*/
86
82
public boolean isDrsAvailible () {
@@ -90,14 +86,13 @@ public boolean isDrsAvailible() {
90
86
}
91
87
return false ;
92
88
}
89
+
93
90
/**
94
- * Checks if we need to switch race strategy to account for the rainy weather
95
- * if the weather is LIGHT_RAIN we change the TyreCompound to INTERMEDIATE
96
- * if the weather is HEAVY_RAIN we change the TyreCompound to WET
97
- *
98
- * @return {@code true} if track.getWeather is LIGHT_RAIN || HEAVY_RAIN
99
- * {@code false} otherwise
91
+ * Checks if we need to switch race strategy to account for the rainy weather if the weather is
92
+ * LIGHT_RAIN we change the TyreCompound to INTERMEDIATE if the weather is HEAVY_RAIN we change
93
+ * the TyreCompound to WET
100
94
*
95
+ * @return {@code true} if track.getWeather is LIGHT_RAIN || HEAVY_RAIN {@code false} otherwise
101
96
* @see Track#getWeather()
102
97
*/
103
98
public boolean rainStrategy () {
0 commit comments