private void setDefaultRates() throws ParseException, ParkingGarageException { BigDecimal hourlyRate = new BigDecimal(props.getProperty("default_regular_rate_amt")); BigDecimal flatRate = new BigDecimal(props.getProperty("default_flat_rate_amt")); // set the regular rate for the year... rateManager.setRate(hourlyRate, false); // set the flat rate for the year... rateManager.setRate(flatRate, true); }
@Override public void setRate(BigDecimal rate, boolean isFlatRate) throws ParkingGarageException, java.rmi.RemoteException { rateManager.setRate(rate, isFlatRate); }