edu.pdx.cs399J.net
Class Transfer

java.lang.Object
  extended by edu.pdx.cs399J.net.Transfer
All Implemented Interfaces:
Runnable

public class Transfer
extends Object
implements Runnable

Transfers money between two BankAccounts. Has the potential to deadlock.


Constructor Summary
Transfer(BankAccount src, BankAccount dest, int amount)
          Sets up a transfer between two accounts.
 
Method Summary
static void main(String[] args)
          Creates and performs a Transfer
 void run()
          Performs the transfer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transfer

public Transfer(BankAccount src,
                BankAccount dest,
                int amount)
Sets up a transfer between two accounts.

Method Detail

run

public void run()
Performs the transfer.

Specified by:
run in interface Runnable

main

public static void main(String[] args)
Creates and performs a Transfer



Copyright © 2000-2009 Portland State University. All Rights Reserved.