package salesQuota2;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * A class to collect all members of a particular sales force
 * 
 * @author myersjac
 */
public class SalesForce {

	/** the name of the sales force, e.g., "Consumer Goods Sales Force" */ 
	private String name;
	
	/** the sales statistics for the members of the sales force **/
	private Map<Salesperson, SalesStatistics> stats = new LinkedHashMap<>();
	
	
	public SalesForce(String name) {
		this.name = name;
		populateSalesForceData();
	}

	public String getName() {
		return name;
	}

	public Map<Salesperson, SalesStatistics> getStats() {
		return stats;
	}
		
	private void populateSalesForceData() {
		stats.put(new Salesperson("Alice", "SENIOR"),
				  new SalesStatistics(2886.3, 2805, 3826.5, 2014.5, 1724.84, 1540.9, 3826.5, 341.6));
		stats.put(new Salesperson("Bob", "JUNIOR"),
				  new SalesStatistics(1762.56, 1372.8, 3405.6, 451.2, 1631.24, 1581.5, 3405.6, 380.8));
		stats.put(new Salesperson("Cherise", "EXPERIENCED"),
			      new SalesStatistics(1818.68, 1921.85, 2565, 357.2, 1699.79, 1840, 2998.8, 357.2));
		stats.put(new Salesperson("Derek", "EXPERIENCED"),
			      new SalesStatistics(2678.1, 3003, 4147.5, 793.5, 1540.15, 1398, 4147.5, 262.5));
		stats.put(new Salesperson("Eduardo", "EXPERIENCED"), 
				  new SalesStatistics(1587.8, 1463, 2768, 665, 1548.44, 1566.5, 2861, 444.6));
		stats.put(new Salesperson("Fahdi", "JUNIOR"),
				  new SalesStatistics(1932.6, 1714, 2838, 1145, 1638.22, 1388.25, 2979, 380));
	}
	
}
