/**
 *  @author Dan Bikle
 *  @version 2004-02-16
 */

package com.bikle.atmDemo1;

import java.util.*;

/**
 * Models an Account.
 */
public class Account {

    ///////////////////////////////////////
    // attributes

    /**
     * Identifies Account object.
     */
    private int accountID;


    ///////////////////////////////////////
    // associations

    /**
     * A Bank may hold several Account objects.
     */
    private Bank bank;

    /**
     * An AccountHolder may hold several Account objects.
     */
    private AccountHolder accountHolder;

    /**
     * Account has Transaction objects.  They are stored here.
     */
    private Vector transactionVector = new Vector(); // of type Transaction


    ///////////////////////////////////////
    // methods

    /**
     * Constructors.
     */
    public Account() {
    }
    public Account(int accountIDin) {
        this.setAccountID(accountIDin);
    }

    public int getAccountID() {
        return accountID;
    }

    public void setAccountID(int accountID) {
        this.accountID = accountID;
    }

    public Bank getBank() {
        return bank;
    }

    public void setBank(Bank bank) {
        this.bank = bank;
    }

    public AccountHolder getAccountHolder() {
        return accountHolder;
    }

    public void setAccountHolder(AccountHolder accountHolder) {
        this.accountHolder = accountHolder;
    }

    public Vector getTransactionVector() {
        return transactionVector;
    }

    public void setTransactionVector(Vector transactionVector) {
        this.transactionVector = transactionVector;
    }


} // end Account



Syntax Highlighting created using the com.Ostermiller.Syntax package.
Monday, February 16 2004 at 23:14