/**
 * Party.java
 */
package Simulation;/*
 * Simulation.Party.java
 *
 * Version:
 *   $Id$
 *
 * Revisions:
 *   $Log: Simulation.Party.java,v $
 *   Revision 1.3  2003/02/09 21:21:31  ???
 *   Added lots of comments
 *
 *   Revision 1.2  2003/01/12 22:23:32  ???
 *   *** empty log message ***
 *
 *   Revision 1.1  2003/01/12 19:09:12  ???
 *   Adding Simulation.Party, Lanes.Lanes, Simulation.Bowler, and desk.Alley.
 *
 */

/**
 *  Container that holds bowlers
 *
 */

import java.util.*;

public class Party implements CustomCollection{

	/** Vector of bowlers in this party */	
    private ArrayList<Bowler> myBowlers;
	
	/**
	 * Constructor for a Simulation.Party
	 * 
	 * @param bowlers	Vector of bowlers that are in this party
	 */
		
    public Party( ArrayList<Bowler> bowlers ) {
		myBowlers = new ArrayList<Bowler>(bowlers);
    }

	/**
	 * Accessor for members in this party
	 * 
	 * @return 	A vector of the bowlers in this party
	 */

    public ArrayList<Bowler> getMembers() {
		return myBowlers;
    }

	public int getSize() {
		return this.myBowlers.size();
	}

	/**
	 * Returns the iterator for this class
	 * @return the iterator generated for this class
	 */
	@Override
	public CustomIterator getIterator() {
		return new PartyIterator(this);
	}

}
