*
* @author Robin Cheney
* @author Nils Göbbert
+ * @author Leander Schnurrer
*/
public class Main {
/**
}
/**
- * Add new large fuel stations
+ * Add new large fuel station
*
- * @param supermarket_company add the special attribut for large fuel stations
+ * @param supermarket_company add the special attribute for large fuel stations
*
* @author Leander Schnurrer
*/
}
/**
- * Add new medium fuel stations
+ * Add new medium fuel station
*
- * @param retail_space add the special attribut for medium fuel stations
+ * @param retail_space add the special attribute for medium fuel stations
*
* @author Leander Schnurrer
*/
}
/**
- * Add new small fuel stations
+ * Add new small fuel station
*
- * @param number_of_vending_machines add the special attribut for small fuel
+ * @param number_of_vending_machines add the special attribute for small fuel
* stations
*
* @author Leander Schnurrer
}
/**
- * Determine the total stock levels of selected petrol stations for a given type
+ * Determine the total stock levels of selected fuel stations for a given type
* of fuel
*
* @param fuelType select the fuel type
- * @param FuelStations select the fuel stations
+ * @param fuelStations select the fuel stations
*
* @return the sum of stock levels of the specific fuel type from the selected
* fuel stations
*
* @author Leander Schnurrer
*/
- public static float getTotalStockLevelOfFuel(FuelType fuelType, FuelStation[] FuelStations) {
+ public static float getTotalStockLevelOfFuel(FuelType fuelType, FuelStation[] fuelStations) {
float sum = 0f;
- for (FuelStation fuelStation : FuelStations) {
+ for (FuelStation fuelStation : fuelStations) {
for (Fuel fuel : fuelStation.fuels) {
if (fuel.getFuelType() == fuelType) {
sum += fuel.getStored_amount();