All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class atm.physical.Log

java.lang.Object
   |
   +----atm.physical.Log

public class Log
extends Object
Manager for the ATM's internal log. In a real ATM, this would manage a physical device; in this simulation, it uses classes in package simulation to simulate the device.


Constructor Index

 o Log()
Constructor

Method Index

 o logCashDispensed(Money)
Log the dispensing of cash by the cash dispenser
 o logEnvelopeAccepted()
Log accepting an envelope.
 o logResponse(Status)
Log a response received from a message
 o logSend(Message)
Log the sending of a message to the bank

Constructors

 o Log
 public Log()
Constructor

Methods

 o logSend
 public void logSend(Message message)
Log the sending of a message to the bank

Parameters:
message - the message to be logged
 o logResponse
 public void logResponse(Status response)
Log a response received from a message

Parameters:
status - the status object returned by the bank in response
 o logCashDispensed
 public void logCashDispensed(Money amount)
Log the dispensing of cash by the cash dispenser

Parameters:
amount - the amount of cash being dispensed
 o logEnvelopeAccepted
 public void logEnvelopeAccepted()
Log accepting an envelope. This method is only called if an envelope is actually received from the customer


All Packages  Class Hierarchy  This Package  Previous  Next  Index