* Get the price for a specific type of fuel for this fuel station
*
* @param fuel_type The {@link FuelType FuelType} to get
+ * @return The price for a specific type of fuel for this fuel station
* @throws NoSuchFuelTypeError This Error is thrown on the attempt to choose a
* fuel type from a fuel station
* which the fuel station does not have
* Get the cumulative price for the amount of fuel stored
*
* => What you would get if you would sell all fuel of this station at the
- * current prices
+ * current price(s)
*
* @return the income in €
*/
* Get the fuel amount for a specific type of fuel for this fuel station
*
* @param fuel_type The {@link FuelType FuelType} to get
+ * @return The fuel amount for a specific type of fuel for this fuel station
* @throws NoSuchFuelTypeError This Error is thrown on the attempt to choose a
* fuel type from a fuel station
* which the fuel station does not have
* @param fuelType Select the type of fuel
*
* @return a FuelStation (all of type {@link FuelStation})
+ * @throws NoSuchFuelTypeError This Error is thrown on the attempt to choose a
+ * fuel type from a fuel station which the fuel
+ * station does not have
*/
public static FuelStation getHighestPrice(FuelType fuelType) throws NoSuchFuelTypeError {
float highestPrice = fuelStations[0].get_price(fuelType);
* Get the FuelStation with the highest price
*
*
- * @param fuelType Select the type of fuel
- *
* @return a FuelStation (all of type {@link FuelStation})
+ * @throws NoSuchFuelTypeError This Error is thrown on the attempt to choose a
+ * fuel type from a fuel station which the fuel
+ * station does not have
*/
public static FuelStation getHighestAccumulatedValue() throws NoSuchFuelTypeError {
float highestValue = fuelStations[0].get_cumulative_retail_price();
* @param fuelType Select the type of fuel
*
* @return a FuelStation (all of type {@link FuelStation})
+ * @throws NoSuchFuelTypeError This Error is thrown on the attempt to choose a
+ * fuel type from a fuel station which the fuel
+ * station does not have
*/
public static FuelStation getHighestStoredAmount(FuelType fuelType) throws NoSuchFuelTypeError {
float highestAmount = fuelStations[0].getStored_amount(fuelType);
* @param fuelType Select the type of fuel
*
* @return a FuelStation (all of type {@link FuelStation})
+ * @throws NoSuchFuelTypeError This Error is thrown on the attempt to choose a
+ * fuel type from a fuel station which the fuel
+ * station does not have
*/
public static FuelStation getLowestStoredAmount(FuelType fuelType) throws NoSuchFuelTypeError {
float lowestAmount = fuelStations[0].getStored_amount(fuelType);