///////////////////////////////////////////////////////////////////////////////      
// Main Class File:  InteractiveDBTester
// File:             Product
// Semester:         CS367 Summer 2014 (at Epic)
//
// Author:           Jason Roberts
// Email:            jjroberts345@gmail.com
// CS Login:         jroberts8
// Lecturer's Name:  Beck Hasti
///////////////////////////////////////////////////////////////////////////////

import java.util.*;
/**
 * The Product class is used to represent a product that keeps track of its 
 * name and customers that want it
 * 
 * @author Jason Roberts
 */
public class Product {
    private String prodName;          // the name of the product      
    private List<String> custList;    // the customers interested in the product
    
    /**
     * Constructs a product with the given name and an empty list of customers.
     * 
     * @param name the name of the product
     */
    public Product(String name)     {
        prodName = name;
        custList = new ArrayList<String>();
    }
    
    /**
     * Return the username of this customer.
     * 
     * @return the username of the customer
     */
    public String getName() { 
        return prodName;
    }
    
    /**
     * Return the wish list of products for this customer.
     * 
     * @return the wish list of products
     */
    public List<String> getCustlist() {
        return custList;
    }

}