All Packages Class Hierarchy This Package Previous Next Index
Class atm.physical.OperatorPanel
java.lang.Object
|
+----atm.physical.OperatorPanel
- public class OperatorPanel
- extends Object
Manager for the ATM's operator panel. In a real ATM, this would
manage a physical device; in this simulation, it uses classes
in package simulation to simulate the device.
-
atm
- ATM this panel is part of.
-
OperatorPanel(ATM)
- Constructor
-
getInitialCash()
- Get the amount of cash in the cash dispenser from the operator at start up
atm
private ATM atm
- ATM this panel is part of. The ATM object will be notified when
the switch on the panel is turned on or off
OperatorPanel
public OperatorPanel(ATM atm)
- Constructor
- Parameters:
- atm - the ATM this panel is part of
getInitialCash
public Money getInitialCash()
- Get the amount of cash in the cash dispenser from the operator at start up
- Returns:
- dollar value of the bills in the cash dispenser (# of bills x $20)
All Packages Class Hierarchy This Package Previous Next Index