de.upb.swtpra05.group03.shuttle
Interface AccountingInterface

All Known Implementing Classes:
Accounting

public interface AccountingInterface

Interface of an accounting module.

Version:
$Revision: 1.3 $

Method Summary
 void drawMoney(int amount)
          Draws an amount of money from the balance value
 int getBalance()
          Returns the current balance
 int getEstimatedCosts()
          Returns the estimated costs for all undelivered orders
 

Method Detail

getBalance

public int getBalance()
Returns the current balance

Returns:
The balance value

drawMoney

public void drawMoney(int amount)
Draws an amount of money from the balance value

Parameters:
amount - The amount of money to subtract

getEstimatedCosts

public int getEstimatedCosts()
Returns the estimated costs for all undelivered orders

Returns:
The sum of the estimated costs